From 7d6ba2a9f198f786a5c44622c80f700cb8480f96 Mon Sep 17 00:00:00 2001 From: Scott Johnson Date: Tue, 2 Nov 2021 16:52:45 -0700 Subject: Use appropriate subclass for breakpoint trap Improves log because it now shows "trap_breakpoint" instead of "trap #3". --- riscv/execute.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'riscv/execute.cc') 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; } -- cgit v1.1