aboutsummaryrefslogtreecommitdiff
path: root/machine/fp_ldst.c
diff options
context:
space:
mode:
Diffstat (limited to 'machine/fp_ldst.c')
-rw-r--r--machine/fp_ldst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/machine/fp_ldst.c b/machine/fp_ldst.c
index 45f843b..33c30c1 100644
--- a/machine/fp_ldst.c
+++ b/machine/fp_ldst.c
@@ -5,7 +5,7 @@
#define punt_to_misaligned_handler(align, handler) \
if (addr % (align) != 0) \
- return write_csr(mbadaddr, addr), (handler)(regs, mcause, mepc)
+ return write_csr(mtval, addr), (handler)(regs, mcause, mepc)
DECLARE_EMULATION_FUNC(emulate_float_load)
{