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:
Horst Schirmeier
2015-02-07 15:58:23 +01:00
parent 48423054b0
commit 0fce4f435c

View File

@ -20,7 +20,7 @@ bool TracingPlugin::run()
// ev_step is added in the first loop iteration
if (m_tracetype | TRACE_MEM) {
if (m_tracetype & TRACE_MEM) {
simulator.addListener(&ev_mem);
}
if (m_protoStreamFile) {
@ -35,7 +35,7 @@ bool TracingPlugin::run()
simtime_t prevtime = 0, curtime;
simtime_diff_t deltatime;
bool record_first_ipevent = m_tracetype | TRACE_IP;
bool record_first_ipevent = m_tracetype & TRACE_IP;
while (true) {
if (!record_first_ipevent) {