summaryrefslogtreecommitdiff
path: root/configs/common
diff options
context:
space:
mode:
authorLisa Hsu <hsul@eecs.umich.edu>2008-02-29 01:49:36 -0500
committerLisa Hsu <hsul@eecs.umich.edu>2008-02-29 01:49:36 -0500
commit02a56d8d01ff4969f73740197309885e8ebdc527 (patch)
treec1ae398bcfa8163f6ba72614078d1bafdf8b6181 /configs/common
parent0273533adb65cc4a29fdf01a0972a7c2529ffa98 (diff)
downloadgem5-02a56d8d01ff4969f73740197309885e8ebdc527.tar.xz
Error out if -s is used without --caches (instead of saying you must specify a
CPU). --HG-- extra : convert_revision : a3b2bfbe7e037146ac08dd08834bf255da692506
Diffstat (limited to 'configs/common')
-rw-r--r--configs/common/Simulation.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/configs/common/Simulation.py b/configs/common/Simulation.py
index 3261594bd..08e700d87 100644
--- a/configs/common/Simulation.py
+++ b/configs/common/Simulation.py
@@ -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