diff options
-rw-r--r-- | util/tlm/src/sim_control.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/tlm/src/sim_control.cc b/util/tlm/src/sim_control.cc index a96daf2c8..fae8db0a4 100644 --- a/util/tlm/src/sim_control.cc +++ b/util/tlm/src/sim_control.cc @@ -86,7 +86,8 @@ Gem5SimControl::Gem5SimControl(sc_core::sc_module_name name, Trace::setDebugLogger(&logger); Gem5SystemC::setTickFrequency(); - sc_core::sc_set_time_resolution(1, sc_core::SC_PS); + assert(sc_core::sc_get_time_resolution() + == sc_core::sc_time(1,sc_core::SC_PS)); Gem5SystemC::Module::setupEventQueues(*this); initSignals(); |