From: Ali Saidi Date: Sat, 3 Nov 2007 18:41:00 +0000 (-0400) Subject: Checkpoint: Use checkpoint_dir, if that is not set use outdir (-d), and if that isn... X-Git-Tag: m5_2.0_beta4~3 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5a4fc93fca4bd6a1c6055f0b473194e595686a9b;p=gem5.git 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 --- 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()