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
This commit is contained in:
Ali Saidi 2007-11-03 14:41:00 -04:00
parent 95dddad9ab
commit 5a4fc93fca

View file

@ -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()