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
This commit is contained in:
Nathan Binkert
2007-02-17 20:32:39 -08:00
parent 18e245ad0b
commit 08f024d3ff
3 changed files with 9 additions and 5 deletions

View File

@@ -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;