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. --- util/tlm/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/tlm') diff --git a/util/tlm/main.cc b/util/tlm/main.cc index 517e4ad43..8add0aeef 100644 --- a/util/tlm/main.cc +++ b/util/tlm/main.cc @@ -142,7 +142,7 @@ SimControl::SimControl(sc_core::sc_module_name name, Stats::initSimStats(); Stats::registerHandlers(CxxConfig::statsReset, CxxConfig::statsDump); - Trace::enabled = true; + Trace::enable(); sim_end = 0; debug = false; -- cgit v1.2.3