summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2007-06-04 15:53:04 -0400
committerAli Saidi <saidi@eecs.umich.edu>2007-06-04 15:53:04 -0400
commit42174babbbf3a5741277e49e367f48bb8a2838e1 (patch)
treebb1ea3ae7207b800a4f691970130606bf63795d0 /src/cpu
parent48133a0f04d43f71a90984eff1899fc2556bb6ec (diff)
downloadgem5-42174babbbf3a5741277e49e367f48bb8a2838e1.tar.xz
don't be so aggressive with the tracing on #if
--HG-- extra : convert_revision : 8ee88bff8010dcb7a412f6a6b49d40fad1c0bb68
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/simple/base.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cpu/simple/base.cc b/src/cpu/simple/base.cc
index a8fe57f0a..33c5877a5 100644
--- a/src/cpu/simple/base.cc
+++ b/src/cpu/simple/base.cc
@@ -413,21 +413,21 @@ BaseSimpleCPU::preExecute()
fetchMicroOp(thread->readMicroPC());
}
-#if TRACING_ON
//If we decoded an instruction this "tick", record information about it.
if(curStaticInst)
{
+#if TRACING_ON
traceData = Trace::getInstRecord(curTick, tc, curStaticInst,
thread->readPC());
DPRINTF(Decode,"Decode: Decoded %s instruction: 0x%x\n",
curStaticInst->getName(), curStaticInst->machInst);
+#endif // TRACING_ON
#if FULL_SYSTEM
thread->setInst(inst);
#endif // FULL_SYSTEM
}
-#endif // TRACING_ON
}
void