diff options
author | Andrew Waterman <andrew@sifive.com> | 2017-03-27 21:21:57 -0700 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2017-03-27 21:21:57 -0700 |
commit | 8f4fb411b016846a539a1ff1cd645a555e3737be (patch) | |
tree | bdd4c84e0c370f5a27aa565783d298d7a8e10396 /riscv/trap.h | |
parent | a80c695b1961ac40086494920f82e85a085ff358 (diff) | |
download | spike-8f4fb411b016846a539a1ff1cd645a555e3737be.zip spike-8f4fb411b016846a539a1ff1cd645a555e3737be.tar.gz spike-8f4fb411b016846a539a1ff1cd645a555e3737be.tar.bz2 |
On EBREAK, set badaddr to pc
Diffstat (limited to 'riscv/trap.h')
-rw-r--r-- | riscv/trap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/trap.h b/riscv/trap.h index a289a68..20313e9 100644 --- a/riscv/trap.h +++ b/riscv/trap.h @@ -47,7 +47,7 @@ class mem_trap_t : public trap_t DECLARE_MEM_TRAP(CAUSE_MISALIGNED_FETCH, instruction_address_misaligned) DECLARE_MEM_TRAP(CAUSE_FETCH_ACCESS, instruction_access_fault) DECLARE_TRAP(CAUSE_ILLEGAL_INSTRUCTION, illegal_instruction) -DECLARE_TRAP(CAUSE_BREAKPOINT, breakpoint) +DECLARE_MEM_TRAP(CAUSE_BREAKPOINT, breakpoint) DECLARE_MEM_TRAP(CAUSE_MISALIGNED_LOAD, load_address_misaligned) DECLARE_MEM_TRAP(CAUSE_MISALIGNED_STORE, store_address_misaligned) DECLARE_MEM_TRAP(CAUSE_LOAD_ACCESS, load_access_fault) |