config: return exit event instead of cause
authorNilay Vaish <nilay@cs.wisc.edu>
Fri, 22 Mar 2013 22:31:24 +0000 (17:31 -0500)
committerNilay Vaish <nilay@cs.wisc.edu>
Fri, 22 Mar 2013 22:31:24 +0000 (17:31 -0500)
changeset: a4739b6f799d made some changes that where an exit event
should have been returned in place of exit cause. This patch corrects
the error.

configs/common/Simulation.py

index 6f0e3cee0b5fefdaff8f79b8c93bc3a70ff455d3..fc6ae0f5f03c2cfe906d7d8afc61fde510e9da5e 100644 (file)
@@ -212,7 +212,7 @@ def scriptCheckpoints(options, maxtick, cptdir):
                     m5.checkpoint(joinpath(cptdir, "cpt.%d"))
                     num_checkpoints += 1
 
-    return exit_cause
+    return exit_event
 
 def benchCheckpoints(options, maxtick, cptdir):
     exit_event = m5.simulate(maxtick)
@@ -464,7 +464,7 @@ def run(options, root, testsys, cpu_class):
         # subsequent periods of <period>.  Checkpoint instructions
         # received from the benchmark running are ignored and skipped in
         # favor of command line checkpoint instructions.
-        exit_cause = scriptCheckpoints(options, maxtick, cptdir)
+        exit_event = scriptCheckpoints(options, maxtick, cptdir)
     else:
         if options.fast_forward:
             m5.stats.reset()