openocd: trace format fix
The output format of the tracing plugin needs to be as follows: For a position in execution, first the PC-Event needs to be sent up to the simulator controller, afterwards potential MEM-Events can be signaled. This order requirement is fixed with this commit. Change-Id: I8412dd7a5a85a58c50a0d0d9b9d0369c838bc0a3
This commit is contained in:
@ -323,6 +323,10 @@ int main(int argc, char *argv[])
|
||||
*/
|
||||
single_step_requested = false;
|
||||
|
||||
freeze_timers();
|
||||
fail::simulator.onBreakpoint(NULL, pc, fail::ANY_ADDR);
|
||||
unfreeze_timers();
|
||||
|
||||
/*
|
||||
* Get current memory access(es)
|
||||
*/
|
||||
@ -339,9 +343,6 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
freeze_timers();
|
||||
fail::simulator.onBreakpoint(NULL, pc, fail::ANY_ADDR);
|
||||
unfreeze_timers();
|
||||
trace_count++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user