Browse Source
Merge pull request #1816 from YenHaoChen/pr-halt
Only enter debug mode once with -H flag (halt_on_reset)
pull/1820/head
Andrew Waterman
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
0 deletions
-
riscv/execute.cc
|
|
|
@ -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); |
|
|
|
} |
|
|
|
} |
|
|
|
|