Skip to content

Commit

Permalink
Only enter debug mode once with -H flag (halt_on_reset)
Browse files Browse the repository at this point in the history
  • Loading branch information
YenHaoChen committed Sep 26, 2024
1 parent de5094a commit 6f05a29
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 6f05a29

Please sign in to comment.