diff options
Diffstat (limited to 'riscv/mmu.h')
-rw-r--r-- | riscv/mmu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/mmu.h b/riscv/mmu.h index e39cd94..0b58f69 100644 --- a/riscv/mmu.h +++ b/riscv/mmu.h @@ -144,10 +144,10 @@ public: return lhs; \ } catch (trap_load_page_fault& t) { \ /* AMO faults should be reported as store faults */ \ - throw trap_store_page_fault(t.get_badaddr()); \ + throw trap_store_page_fault(t.get_tval()); \ } catch (trap_load_access_fault& t) { \ /* AMO faults should be reported as store faults */ \ - throw trap_store_access_fault(t.get_badaddr()); \ + throw trap_store_access_fault(t.get_tval()); \ } \ } |