diff options
author | Scott Johnson <scott.johnson@arilinc.com> | 2021-11-02 16:52:45 -0700 |
---|---|---|
committer | Scott Johnson <scott.johnson@arilinc.com> | 2021-11-03 13:34:33 -0700 |
commit | 7d6ba2a9f198f786a5c44622c80f700cb8480f96 (patch) | |
tree | 532b5bc8f47acbd1b708e127b1b4cc40dbda2d45 | |
parent | 61244507802b5f8c13a4025baaf9a68b9f076c20 (diff) | |
download | spike-7d6ba2a9f198f786a5c44622c80f700cb8480f96.zip spike-7d6ba2a9f198f786a5c44622c80f700cb8480f96.tar.gz spike-7d6ba2a9f198f786a5c44622c80f700cb8480f96.tar.bz2 |
Use appropriate subclass for breakpoint trap
Improves log because it now shows "trap_breakpoint" instead of "trap #3".
-rw-r--r-- | riscv/execute.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/execute.cc b/riscv/execute.cc index 875ce5d..21a9428 100644 --- a/riscv/execute.cc +++ b/riscv/execute.cc @@ -329,7 +329,7 @@ void processor_t::step(size_t n) enter_debug_mode(DCSR_CAUSE_HWBP); break; case ACTION_DEBUG_EXCEPTION: { - insn_trap_t trap(CAUSE_BREAKPOINT, t.address); + trap_breakpoint trap(t.address); take_trap(trap, pc); break; } |