aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Johnson <scott.johnson@arilinc.com>2021-11-02 19:25:09 -0700
committerScott Johnson <scott.johnson@arilinc.com>2021-11-04 11:44:14 -0700
commite6aa0a1c73881099624dc218c2b1b154c11a578f (patch)
tree00902663dc50b9ef04d49b4c83a95c594e7822c5
parentf862f8c9f2d283b39d0141b798dcb9f96dca5129 (diff)
downloadspike-e6aa0a1c73881099624dc218c2b1b154c11a578f.zip
spike-e6aa0a1c73881099624dc218c2b1b154c11a578f.tar.gz
spike-e6aa0a1c73881099624dc218c2b1b154c11a578f.tar.bz2
Report proper GVA bit on breakpoint traps
-rw-r--r--riscv/execute.cc2
-rw-r--r--riscv/insns/c_ebreak.h2
-rw-r--r--riscv/insns/ebreak.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/riscv/execute.cc b/riscv/execute.cc
index 467a2b4..3f7584e 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: {
- trap_breakpoint trap(/*gva*/false, t.address);
+ trap_breakpoint trap(state.v, t.address);
take_trap(trap, pc);
break;
}
diff --git a/riscv/insns/c_ebreak.h b/riscv/insns/c_ebreak.h
index 216e04b..7d04f46 100644
--- a/riscv/insns/c_ebreak.h
+++ b/riscv/insns/c_ebreak.h
@@ -1,2 +1,2 @@
require_extension('C');
-throw trap_breakpoint(/*gva*/false, pc);
+throw trap_breakpoint(STATE.v, pc);
diff --git a/riscv/insns/ebreak.h b/riscv/insns/ebreak.h
index dda89d4..9f3d44d 100644
--- a/riscv/insns/ebreak.h
+++ b/riscv/insns/ebreak.h
@@ -1 +1 @@
-throw trap_breakpoint(/*gva*/false, pc);
+throw trap_breakpoint(STATE.v, pc);