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
parent
commit
666da337f8
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      riscv/execute.cc

1
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);
}
}

Loading…
Cancel
Save