tracing: fix "IP only" tracing
Only tracing the instruction pointer was broken, memory accesses were always traced additionally. Found by Coverity Scan, CID 25495. Change-Id: Ideb66175865c85bcd48f4b3786d5d8f16810d4f1
This commit is contained in:
@ -20,7 +20,7 @@ bool TracingPlugin::run()
|
|||||||
|
|
||||||
// ev_step is added in the first loop iteration
|
// ev_step is added in the first loop iteration
|
||||||
|
|
||||||
if (m_tracetype | TRACE_MEM) {
|
if (m_tracetype & TRACE_MEM) {
|
||||||
simulator.addListener(&ev_mem);
|
simulator.addListener(&ev_mem);
|
||||||
}
|
}
|
||||||
if (m_protoStreamFile) {
|
if (m_protoStreamFile) {
|
||||||
@ -35,7 +35,7 @@ bool TracingPlugin::run()
|
|||||||
simtime_t prevtime = 0, curtime;
|
simtime_t prevtime = 0, curtime;
|
||||||
simtime_diff_t deltatime;
|
simtime_diff_t deltatime;
|
||||||
|
|
||||||
bool record_first_ipevent = m_tracetype | TRACE_IP;
|
bool record_first_ipevent = m_tracetype & TRACE_IP;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
if (!record_first_ipevent) {
|
if (!record_first_ipevent) {
|
||||||
|
|||||||
Reference in New Issue
Block a user