CPU: Print out traces for faluting inst when the flag ExecFaulting is set
authorAli Saidi <ali.saidi@arm.com>
Thu, 26 Aug 2010 00:10:43 +0000 (19:10 -0500)
committerAli Saidi <ali.saidi@arm.com>
Thu, 26 Aug 2010 00:10:43 +0000 (19:10 -0500)
src/cpu/simple/atomic.cc
src/cpu/simple/timing.cc

index 8ee91758f175ac19f2031ecec7eb7f6a422286ee..1726db1937e09590baa85e0118fb97e08c95df3e 100644 (file)
@@ -687,8 +687,7 @@ AtomicSimpleCPU::tick()
                 // keep an instruction count
                 if (fault == NoFault)
                     countInst();
-                else if (traceData) {
-                    // If there was a fault, we should trace this instruction.
+                else if (traceData && !DTRACE(ExecFaulting)) {
                     delete traceData;
                     traceData = NULL;
                 }
index b04288ca69089909ae3349f0d8970cba4a2a84c6..4b093e115aeed621fd7ac869176e287bf005f948 100644 (file)
@@ -817,8 +817,7 @@ TimingSimpleCPU::completeIfetch(PacketPtr pkt)
         // keep an instruction count
         if (fault == NoFault)
             countInst();
-        else if (traceData) {
-            // If there was a fault, we shouldn't trace this instruction.
+        else if (traceData && !DTRACE(ExecFaulting)) {
             delete traceData;
             traceData = NULL;
         }