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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
0 deletions
-
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&) |
|
|
|
{ |
|
|
|
|