19 lines
446 B
C
19 lines
446 B
C
#ifndef __SMCC_RISCV32_ASM_H__
|
|
#define __SMCC_RISCV32_ASM_H__
|
|
|
|
#include <lib/utils/strpool/strpool.h>
|
|
#include <src/mcode/riscv32/riscv32_mcode.h>
|
|
#include "symtab_asm.h"
|
|
typedef struct rv32_prog {
|
|
strpool_t* strpool;
|
|
symtab_asm_t symtab;
|
|
u32_t text_base_address;
|
|
u32_t data_base_address;
|
|
VECTOR_HEADER(data, iptr_t);
|
|
mcode_rv32_t mcode;
|
|
} rv32_prog_t;
|
|
|
|
void init_rv32_prog(rv32_prog_t* prog, strpool_t* strpool);
|
|
|
|
#endif
|