don't be so aggressive with the tracing on #if
authorAli Saidi <saidi@eecs.umich.edu>
Mon, 4 Jun 2007 19:53:04 +0000 (15:53 -0400)
committerAli Saidi <saidi@eecs.umich.edu>
Mon, 4 Jun 2007 19:53:04 +0000 (15:53 -0400)
--HG--
extra : convert_revision : 8ee88bff8010dcb7a412f6a6b49d40fad1c0bb68

src/cpu/simple/base.cc

index a8fe57f0a090d2860624894e81a38a4a1585a1ec..33c5877a52e82e8d45fe84fa280794c53505c821 100644 (file)
@@ -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