summaryrefslogtreecommitdiff
path: root/src/cpu/simple/atomic.cc
diff options
context:
space:
mode:
authorAli Saidi <ali.saidi@arm.com>2010-08-25 19:10:43 -0500
committerAli Saidi <ali.saidi@arm.com>2010-08-25 19:10:43 -0500
commit546eaa6109849879c248822efe89eb4db7126b7d (patch)
tree58b3ee8fd51729e784bc53040e7ea8da2b53e385 /src/cpu/simple/atomic.cc
parentdee8f3d50014ae0e300269867d7dbca5fa4759e5 (diff)
downloadgem5-546eaa6109849879c248822efe89eb4db7126b7d.tar.xz
CPU: Print out traces for faluting inst when the flag ExecFaulting is set
Diffstat (limited to 'src/cpu/simple/atomic.cc')
-rw-r--r--src/cpu/simple/atomic.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cpu/simple/atomic.cc b/src/cpu/simple/atomic.cc
index 8ee91758f..1726db193 100644
--- a/src/cpu/simple/atomic.cc
+++ b/src/cpu/simple/atomic.cc
@@ -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;
}