Checkpoint: Use checkpoint_dir, if that is not set use outdir (-d), and if that isn...
authorAli Saidi <saidi@eecs.umich.edu>
Sat, 3 Nov 2007 18:41:00 +0000 (14:41 -0400)
committerAli Saidi <saidi@eecs.umich.edu>
Sat, 3 Nov 2007 18:41:00 +0000 (14:41 -0400)
--HG--
extra : convert_revision : 6548dd6de376dd59285a37a03bcf2525f8fc3845

configs/common/Simulation.py

index 6b585d8c3bc99626b7c94d9320f57f239caf7451..84628b3474844c5b3004905330790b111a27bc91 100644 (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()