diff options
Diffstat (limited to 'machine/emulation.c')
-rw-r--r-- | machine/emulation.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/machine/emulation.c b/machine/emulation.c index 70169fd..ad74fb4 100644 --- a/machine/emulation.c +++ b/machine/emulation.c @@ -75,8 +75,8 @@ void illegal_insn_trap(uintptr_t* regs, uintptr_t mcause, uintptr_t mepc) write_csr(mepc, mepc + 4); - extern int32_t illegal_insn_trap_table[]; - int32_t* pf = (void*)illegal_insn_trap_table + (insn & 0x7c); + extern uint32_t illegal_insn_trap_table[]; + uint32_t* pf = (void*)illegal_insn_trap_table + (insn & 0x7c); emulation_func f = (emulation_func)(uintptr_t)*pf; f(regs, mcause, mepc, mstatus, insn); } |