Error out if -s is used without --caches (instead of saying you must specify a m5_2.0_beta5
authorLisa Hsu <hsul@eecs.umich.edu>
Fri, 29 Feb 2008 06:49:36 +0000 (01:49 -0500)
committerLisa Hsu <hsul@eecs.umich.edu>
Fri, 29 Feb 2008 06:49:36 +0000 (01:49 -0500)
CPU).

--HG--
extra : convert_revision : a3b2bfbe7e037146ac08dd08834bf255da692506

configs/common/Simulation.py

index 3261594bd0704d7c535449cce620204ae245e250..08e700d87f04c6c4ddc3ae72def50ceed997797e 100644 (file)
@@ -80,8 +80,8 @@ def run(options, root, testsys, cpu_class):
     if options.fast_forward and options.checkpoint_restore != None:
         m5.panic("Error: Can't specify both --fast-forward and --checkpoint-restore")
 
-    if options.standard_switch and not cpu_class:
-        m5.panic("Error: Must specify CPU to switch to for --standard-switch (almost always detailed (-d))")
+    if options.standard_switch and not options.caches:
+        m5.panic("Error: Must specify --caches when using --standard-switch")
 
     np = options.num_cpus
     max_checkpoints = options.max_checkpoints