diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2012-09-11 14:14:51 -0400 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2012-09-11 14:14:51 -0400 |
commit | 9ad7e23e9e277b13fd7cbe3b123b2d72f8817269 (patch) | |
tree | 31bdd32ec9125a4b6bacc385cea243991590f789 /configs/common | |
parent | 584eba3ab66c8f95e2344cf7115ec2fb13604eb1 (diff) | |
download | gem5-9ad7e23e9e277b13fd7cbe3b123b2d72f8817269.tar.xz |
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 (limited to 'configs/common')
-rw-r--r-- | configs/common/Simulation.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configs/common/Simulation.py b/configs/common/Simulation.py index 568b78322..8e62bcbb6 100644 --- a/configs/common/Simulation.py +++ b/configs/common/Simulation.py @@ -153,7 +153,7 @@ def findCptDir(options, maxtick, cptdir, testsys): 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 @@ 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, cptdir) + exit_cause = scriptCheckpoints(options, maxtick, cptdir) else: if options.fast_forward: m5.stats.reset() |