diff options
Diffstat (limited to 'util/tlm')
-rw-r--r-- | util/tlm/main.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/util/tlm/main.cc b/util/tlm/main.cc index c06565603..bf442e02b 100644 --- a/util/tlm/main.cc +++ b/util/tlm/main.cc @@ -30,6 +30,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * Authors: Matthias Jung + * Abdul Mutaal Ahmad */ /** @@ -67,6 +68,9 @@ #include "sim/system.hh" #include "stats.hh" +// Defining global string variable decalred in stats.hh +std::string filename; + void usage(const std::string &prog_name) { std::cerr << "Usage: " << prog_name << ( @@ -296,6 +300,8 @@ sc_main(int argc, char **argv) SimControl sim_control("gem5", argc, argv); Target *memory; + filename = "m5out/stats-tlm.txt"; + tlm::tlm_initiator_socket <> *mem_port = dynamic_cast<tlm::tlm_initiator_socket<> *>( sc_core::sc_find_object("gem5.memory") @@ -319,5 +325,7 @@ sc_main(int argc, char **argv) SC_REPORT_INFO("sc_main", "End of Simulation"); + CxxConfig::statsDump(); + return EXIT_SUCCESS; } |