diff options
author | Andrew Waterman <andrew@sifive.com> | 2017-04-11 19:48:01 -0700 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2017-04-11 19:48:01 -0700 |
commit | 5f736b9ab82ad19e03fc720c63f08e01a72712cc (patch) | |
tree | dcdd19805e90be2f720a7e2e8c55d9c9fcea79ba /machine/emulation.h | |
parent | 3a3c1f5a1a797b8d054652c6a5eecc13699dee51 (diff) | |
download | pk-5f736b9ab82ad19e03fc720c63f08e01a72712cc.zip pk-5f736b9ab82ad19e03fc720c63f08e01a72712cc.tar.gz pk-5f736b9ab82ad19e03fc720c63f08e01a72712cc.tar.bz2 |
Always write sbadaddr on trap redirection
Diffstat (limited to 'machine/emulation.h')
-rw-r--r-- | machine/emulation.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/machine/emulation.h b/machine/emulation.h index 156d847..f75173d 100644 --- a/machine/emulation.h +++ b/machine/emulation.h @@ -11,7 +11,7 @@ typedef void (*emulation_func)(uintptr_t*, uintptr_t, uintptr_t, uintptr_t, insn void misaligned_load_trap(uintptr_t* regs, uintptr_t mcause, uintptr_t mepc); void misaligned_store_trap(uintptr_t* regs, uintptr_t mcause, uintptr_t mepc); -void redirect_trap(uintptr_t epc, uintptr_t mstatus); +void redirect_trap(uintptr_t epc, uintptr_t mstatus, uintptr_t badaddr); DECLARE_EMULATION_FUNC(truly_illegal_insn); DECLARE_EMULATION_FUNC(emulate_rvc_0); DECLARE_EMULATION_FUNC(emulate_rvc_2); |