summaryrefslogtreecommitdiff
path: root/src/cpu/inst_pb_trace.cc
diff options
context:
space:
mode:
authorCurtis Dunham <Curtis.Dunham@arm.com>2015-09-30 15:21:55 -0500
committerCurtis Dunham <Curtis.Dunham@arm.com>2015-09-30 15:21:55 -0500
commit02881a7bf3e5a5920d258d13ed0aed282f252f07 (patch)
tree73b16a32bbfc03c789d75c35d951b108cae98a94 /src/cpu/inst_pb_trace.cc
parentccf4f6c3d7616c546d78eb21d22ebda812b5e2bb (diff)
downloadgem5-02881a7bf3e5a5920d258d13ed0aed282f252f07.tar.xz
base: remove Trace::enabled flag
The DTRACE() macro tests both Trace::enabled and the specific flag. This change uses the same administrative interface for enabling/disabling tracing, but masks the SimpleFlags settings directly. This eliminates a load for every DTRACE() test, e.g. DPRINTF.
Diffstat (limited to 'src/cpu/inst_pb_trace.cc')
-rw-r--r--src/cpu/inst_pb_trace.cc4
1 files changed, 2 insertions, 2 deletions
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);