Update the Memtester, commit a config file/test for it.
[gem5.git] / src / sim / root.cc
index 37b768bf01663ab01de8f233e7e4a1f2170cd089..565b57269ca0290ca8bfb19c271f14758b59f7d5 100644 (file)
@@ -40,6 +40,7 @@
 #include "sim/builder.hh"
 #include "sim/host.hh"
 #include "sim/sim_events.hh"
+#include "sim/sim_exit.hh"
 #include "sim/sim_object.hh"
 #include "sim/root.hh"
 
@@ -99,7 +100,7 @@ void
 Root::startup()
 {
     if (max_tick != 0)
-        new SimExitEvent(curTick + max_tick, "reached maximum cycle count");
+        schedExitSimLoop("reached maximum cycle count", curTick + max_tick);
 
     if (progress_interval != 0)
         new ProgressEvent(&mainEventQueue, progress_interval);