aboutsummaryrefslogtreecommitdiff
path: root/riscv/processor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/processor.cc')
-rw-r--r--riscv/processor.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/riscv/processor.cc b/riscv/processor.cc
index 984b9e5..f7cc5fe 100644
--- a/riscv/processor.cc
+++ b/riscv/processor.cc
@@ -783,6 +783,8 @@ void processor_t::debug_output_log(std::stringstream *s)
void processor_t::take_trap(trap_t& t, reg_t epc)
{
+ stash_privilege();
+
unsigned max_xlen = isa->get_max_xlen();
if (debug) {