Browse Source

Merge pull request #2356 from sinhaparth5/fix/timing-before-trigger-step

Debug/Trace: stop execution when a timing-before trigger matches
pull/1899/merge
Andrew Waterman 1 week ago
committed by GitHub
parent
commit
3d8eb089bd
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      riscv/execute.cc

4
riscv/execute.cc

@ -346,6 +346,10 @@ void processor_t::step(size_t n)
catch (triggers::matched_t& t)
{
take_trigger_action(t.action, t.address, pc, t.gva);
// End this step at the trigger boundary. In particular, a timing-before
// trigger retires no instruction, so continuing would immediately execute
// from the debug ROM or trap vector to consume the remaining step count.
n = instret;
}
catch(trap_debug_mode&)
{

Loading…
Cancel
Save