From b6038de3fcd71703732995bb90bd7d411d330890 Mon Sep 17 00:00:00 2001 From: Anup Patel Date: Sun, 21 Jun 2020 19:32:09 +0530 Subject: Extend trap classes to pass more information With hypervisor extension, we have more CSRs providing trap related information. We extend existing trap classes to pass additional trap information required by hypervisor extension. Signed-off-by: Anup Patel --- 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 4ed2753..a6c7f10 100644 --- a/riscv/execute.cc +++ b/riscv/execute.cc @@ -347,7 +347,7 @@ void processor_t::step(size_t n) enter_debug_mode(DCSR_CAUSE_HWBP); break; case ACTION_DEBUG_EXCEPTION: { - mem_trap_t trap(CAUSE_BREAKPOINT, t.address); + insn_trap_t trap(CAUSE_BREAKPOINT, t.address); take_trap(trap, pc); break; } -- cgit v1.1