diff options
Diffstat (limited to 'riscv/execute.cc')
-rw-r--r-- | riscv/execute.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/riscv/execute.cc b/riscv/execute.cc index 8b8c902..1796c38 100644 --- a/riscv/execute.cc +++ b/riscv/execute.cc @@ -53,6 +53,10 @@ static reg_t execute_insn(processor_t* p, reg_t pc, insn_fetch_t fetch) // fetch/decode/execute loop void processor_t::step(size_t n) { + if (state.dcsr.debugint && state.dcsr.cause == DCSR_CAUSE_NONE) { + enter_debug_mode(DCSR_CAUSE_DEBUGINT); + } + while (n > 0) { size_t instret = 0; reg_t pc = state.pc; |