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:
Lars Rademacher
2013-12-31 16:47:02 +01:00
parent b97998829a
commit bcb1e6b7a4

View File

@ -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++;
}