From 02881a7bf3e5a5920d258d13ed0aed282f252f07 Mon Sep 17 00:00:00 2001 From: Curtis Dunham Date: Wed, 30 Sep 2015 15:21:55 -0500 Subject: 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. --- src/cpu/exetrace.hh | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/cpu/exetrace.hh') 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); } -- cgit v1.2.3