summaryrefslogtreecommitdiff
path: root/src/cpu/exetrace.hh
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2007-02-17 20:32:39 -0800
committerNathan Binkert <binkertn@umich.edu>2007-02-17 20:32:39 -0800
commit08f024d3ff68ae533f9d96ebd0e470a1874a7d86 (patch)
tree435b7687ecc4d4f4d4251c6a70821c06e5cb0b5a /src/cpu/exetrace.hh
parent18e245ad0b6ee99f23e2ed67c150413295c69c1f (diff)
downloadgem5-08f024d3ff68ae533f9d96ebd0e470a1874a7d86.tar.xz
Default to tracing being disabled in C++, it will be turned
on in python. Fix the trace start code so it actually starts when it is suppsed to. Make the Exec tracing stuff obey the trace enabled flag. --HG-- extra : convert_revision : 634ba0b4f52345d4bf40d43e239cef7ef43e7691
Diffstat (limited to 'src/cpu/exetrace.hh')
-rw-r--r--src/cpu/exetrace.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cpu/exetrace.hh b/src/cpu/exetrace.hh
index be10b4a6a..0f642c08e 100644
--- a/src/cpu/exetrace.hh
+++ b/src/cpu/exetrace.hh
@@ -157,6 +157,9 @@ getInstRecord(Tick when, ThreadContext *tc, const StaticInstPtr staticInst,
if (!IsOn(ExecEnable))
return NULL;
+ if (!Trace::enabled)
+ return NULL;
+
if (!IsOn(ExecSpeculative) && tc->misspeculating())
return NULL;