Skip to content

Commit

Permalink
Merge pull request #1816 from YenHaoChen/pr-halt
Browse files Browse the repository at this point in the history
Only enter debug mode once with -H flag (halt_on_reset)
  • Loading branch information
aswaterman authored Sep 26, 2024
2 parents de5094a + 6f05a29 commit 666da33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions riscv/execute.cc
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ void processor_t::step(size_t n)
} else if (halt_request == HR_GROUP) {
enter_debug_mode(DCSR_CAUSE_GROUP, 0);
} else if (state.dcsr->halt) {
state.dcsr->halt = false;
enter_debug_mode(DCSR_CAUSE_HALT, 0);
}
}
Expand Down

0 comments on commit 666da33

Please sign in to comment.