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.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user