aboutsummaryrefslogtreecommitdiff
path: root/machine/emulation.h
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2017-04-11 19:48:01 -0700
committerAndrew Waterman <andrew@sifive.com>2017-04-11 19:48:01 -0700
commit5f736b9ab82ad19e03fc720c63f08e01a72712cc (patch)
treedcdd19805e90be2f720a7e2e8c55d9c9fcea79ba /machine/emulation.h
parent3a3c1f5a1a797b8d054652c6a5eecc13699dee51 (diff)
downloadpk-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.h2
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);