diff options
Diffstat (limited to 'riscv/execute.cc')
-rw-r--r-- | riscv/execute.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/execute.cc b/riscv/execute.cc index 5b8e523..1fa6111 100644 --- a/riscv/execute.cc +++ b/riscv/execute.cc @@ -216,8 +216,8 @@ void processor_t::step(size_t n) enter_debug_mode(DCSR_CAUSE_DEBUGINT, 0); } else if (halt_request == HR_GROUP) { enter_debug_mode(DCSR_CAUSE_GROUP, 0); - } else if (state.dcsr->halt) { - state.dcsr->halt = false; + } else if (halt_on_reset) { + halt_on_reset = false; enter_debug_mode(DCSR_CAUSE_HALT, 0); } } |