Browse Source

Merge pull request #1337 from YenHaoChen/pr-icount-bugfix

triggers: icount: not to decrease on firing icount trigger with Debug Mode action
pull/1389/head
Andrew Waterman 3 years ago
committed by GitHub
parent
commit
f45f7269b7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      riscv/triggers.cc

2
riscv/triggers.cc

@ -317,7 +317,7 @@ std::optional<match_result_t> icount_t::detect_icount_match(processor_t * const
ret = match_result_t(TIMING_BEFORE, action);
}
if (count >= 1) {
if (count >= 1 && (ret == std::nullopt || action != MCONTROL_ACTION_DEBUG_MODE)) {
if (count == 1)
pending = 1;
count = count - 1;

Loading…
Cancel
Save