diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2007-11-03 14:41:00 -0400 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2007-11-03 14:41:00 -0400 |
commit | 5a4fc93fca4bd6a1c6055f0b473194e595686a9b (patch) | |
tree | ac285f23be2a3271eb98ff18a5c4cd2909aa267c /configs | |
parent | 95dddad9ab2a113364a661d70be01a65de5ccf95 (diff) | |
download | gem5-5a4fc93fca4bd6a1c6055f0b473194e595686a9b.tar.xz |
Checkpoint: Use checkpoint_dir, if that is not set use outdir (-d), and if that isn't set use cwd.
--HG--
extra : convert_revision : 6548dd6de376dd59285a37a03bcf2525f8fc3845
Diffstat (limited to 'configs')
-rw-r--r-- | configs/common/Simulation.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configs/common/Simulation.py b/configs/common/Simulation.py index 6b585d8c3..84628b347 100644 --- a/configs/common/Simulation.py +++ b/configs/common/Simulation.py @@ -72,6 +72,8 @@ def run(options, root, testsys, cpu_class): if options.checkpoint_dir: cptdir = options.checkpoint_dir + elif m5.options.outdir: + cptdir = m5.options.outdir else: cptdir = getcwd() |