diff options
Diffstat (limited to 'util/systemc/main.cc')
-rw-r--r-- | util/systemc/main.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/util/systemc/main.cc b/util/systemc/main.cc index 75a77853b..c9fbd48a0 100644 --- a/util/systemc/main.cc +++ b/util/systemc/main.cc @@ -74,6 +74,9 @@ #include "sc_module.hh" #include "stats.hh" +// Defining global string variable decalred in stats.hh +std::string filename; + void usage(const std::string &prog_name) { @@ -289,7 +292,7 @@ void SimControl::run() std::cerr << "Waiting for " << wait_period << "ps for" " SystemC to catch up to gem5\n"; - wait(sc_core::sc_time(wait_period, sc_core::SC_PS)); + wait(sc_core::sc_time::from_value(wait_period)); } config_manager->loadState(*checkpoint); @@ -383,7 +386,11 @@ sc_main(int argc, char **argv) { SimControl sim_control("gem5", argc, argv); + filename = "m5out/stats-systemc.txt"; + sc_core::sc_start(); + CxxConfig::statsDump(); + return EXIT_SUCCESS; } |