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 666884f..c3c5d8f 100644
--- a/riscv/processor.cc
+++ b/riscv/processor.cc
@@ -537,6 +537,7 @@ void processor_t::reset()
state.dcsr->halt = halt_on_reset;
halt_on_reset = false;
VU.reset();
+ in_wfi = false;
if (n_pmp > 0) {
// For backwards compatibility with software that is unaware of PMP,
@@ -744,6 +745,7 @@ void processor_t::enter_debug_mode(uint8_t cause)
set_privilege(PRV_M);
state.dpc->write(state.pc);
state.pc = DEBUG_ROM_ENTRY;
+ in_wfi = false;
}
void processor_t::debug_output_log(std::stringstream *s)