summaryrefslogtreecommitdiff
path: root/util
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 /util
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 'util')
-rw-r--r--util/cxx_config/main.cc2
-rw-r--r--util/systemc/main.cc2
-rw-r--r--util/systemc/sc_gem5_control.cc2
-rw-r--r--util/tlm/main.cc2
4 files changed, 4 insertions, 4 deletions
diff --git a/util/cxx_config/main.cc b/util/cxx_config/main.cc
index afc166174..2a9588f2e 100644
--- a/util/cxx_config/main.cc
+++ b/util/cxx_config/main.cc
@@ -117,7 +117,7 @@ main(int argc, char **argv)
Stats::initSimStats();
Stats::registerHandlers(CxxConfig::statsReset, CxxConfig::statsDump);
- Trace::enabled = true;
+ Trace::enable();
setDebugFlag("Terminal");
// setDebugFlag("CxxConfig");
diff --git a/util/systemc/main.cc b/util/systemc/main.cc
index 2ca6bbe65..f4c7b6305 100644
--- a/util/systemc/main.cc
+++ b/util/systemc/main.cc
@@ -162,7 +162,7 @@ SimControl::SimControl(sc_core::sc_module_name name,
Stats::initSimStats();
Stats::registerHandlers(CxxConfig::statsReset, CxxConfig::statsDump);
- Trace::enabled = true;
+ Trace::enable();
setDebugFlag("Terminal");
checkpoint_restore = false;
diff --git a/util/systemc/sc_gem5_control.cc b/util/systemc/sc_gem5_control.cc
index 5dd3b1ed5..cf6e0d57c 100644
--- a/util/systemc/sc_gem5_control.cc
+++ b/util/systemc/sc_gem5_control.cc
@@ -241,7 +241,7 @@ Gem5TopLevelModule::Gem5TopLevelModule(sc_core::sc_module_name name,
Stats::initSimStats();
Stats::registerHandlers(CxxConfig::statsReset, CxxConfig::statsDump);
- Trace::enabled = true;
+ Trace::enable();
config_file = new CxxIniFile();
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;