summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/exetrace.hh3
-rw-r--r--src/cpu/inst_pb_trace.cc4
-rw-r--r--src/cpu/inteltrace.hh3
3 files changed, 2 insertions, 8 deletions
diff --git a/src/cpu/exetrace.hh b/src/cpu/exetrace.hh
index 51a8c05c9..b7e808a2a 100644
--- a/src/cpu/exetrace.hh
+++ b/src/cpu/exetrace.hh
@@ -75,9 +75,6 @@ class ExeTracer : public InstTracer
if (!Debug::ExecEnable)
return NULL;
- if (!Trace::enabled)
- return NULL;
-
return new ExeTracerRecord(when, tc,
staticInst, pc, macroStaticInst);
}
diff --git a/src/cpu/inst_pb_trace.cc b/src/cpu/inst_pb_trace.cc
index e6ed425ec..400360078 100644
--- a/src/cpu/inst_pb_trace.cc
+++ b/src/cpu/inst_pb_trace.cc
@@ -123,8 +123,8 @@ InstPBTraceRecord*
InstPBTrace::getInstRecord(Tick when, ThreadContext *tc, const StaticInstPtr si,
TheISA::PCState pc, const StaticInstPtr mi)
{
- // Only record the trace if Exec debugging in enabled
- if (!Trace::enabled || !Debug::ExecEnable)
+ // Only record the trace if Exec debugging is enabled
+ if (!Debug::ExecEnable)
return NULL;
return new InstPBTraceRecord(*this, when, tc, si, pc, mi);
diff --git a/src/cpu/inteltrace.hh b/src/cpu/inteltrace.hh
index 4ddf5eac9..fa1b51602 100644
--- a/src/cpu/inteltrace.hh
+++ b/src/cpu/inteltrace.hh
@@ -71,9 +71,6 @@ class IntelTrace : public InstTracer
if (!Debug::ExecEnable)
return NULL;
- if (!Trace::enabled)
- return NULL;
-
return new IntelTraceRecord(when, tc, staticInst, pc, macroStaticInst);
}
};