changeset a67412670f37 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=a67412670f37
description:
Checkpoint: Pass maxtick to avoid undefined variable
This patch fixes a bug in scriptCheckpoints, where maxtick was used
undefined. The bug caused checkpointing by means of --take-checkpoints
to fail.
diffstat:
configs/common/Simulation.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r a42caed28e1f -r a67412670f37 configs/common/Simulation.py
--- a/configs/common/Simulation.py Tue Sep 11 14:14:49 2012 -0400
+++ b/configs/common/Simulation.py Tue Sep 11 14:14:51 2012 -0400
@@ -153,7 +153,7 @@
return maxtick, checkpoint_dir
-def scriptCheckpoints(options, cptdir):
+def scriptCheckpoints(options, maxtick, cptdir):
if options.at_instruction or options.simpoint:
checkpoint_inst = int(options.take_checkpoints)
@@ -488,7 +488,7 @@
# 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, cptdir)
+ exit_cause = scriptCheckpoints(options, maxtick, cptdir)
else:
if options.fast_forward:
m5.stats.reset()
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev