diff --git a/gen_input/templates/CORENAME.h.gtl b/gen_input/templates/CORENAME.h.gtl index d5ba6c4..02ecb68 100644 --- a/gen_input/templates/CORENAME.h.gtl +++ b/gen_input/templates/CORENAME.h.gtl @@ -109,7 +109,7 @@ template <> struct traits<${coreDef.name.toLowerCase()}> { enum sreg_flag_e { FLAGS }; - enum mem_type_e { ${spaces.collect{it.name}.join(', ')} }; + enum mem_type_e { ${spaces.collect{it.name}.join(', ')}, IMEM = MEM }; enum class opcode_e {<%instructions.eachWithIndex{instr, index -> %> ${instr.instruction.name} = ${index},<%}%> diff --git a/src/iss/arch/tgc5c.h b/src/iss/arch/tgc5c.h index 7285edd..cff086d 100644 --- a/src/iss/arch/tgc5c.h +++ b/src/iss/arch/tgc5c.h @@ -81,7 +81,7 @@ template <> struct traits { enum sreg_flag_e { FLAGS }; - enum mem_type_e { MEM, FENCE, RES, CSR }; + enum mem_type_e { MEM, FENCE, RES, CSR, IMEM = MEM }; enum class opcode_e { LUI = 0,