summaryrefslogtreecommitdiff
path: root/configs/common/Options.py
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas@sandberg.pp.se>2013-06-03 13:40:05 +0200
committerAndreas Sandberg <andreas@sandberg.pp.se>2013-06-03 13:40:05 +0200
commitd989a3ad504b24d5b553617440ec14da30a8c660 (patch)
treebd5eb257379275a2eff0297cd8e92c3382a07704 /configs/common/Options.py
parentc2ec232920354ac1c8e07e0d2fbb8b8b314343b5 (diff)
downloadgem5-d989a3ad504b24d5b553617440ec14da30a8c660.tar.xz
config: Add missing CPUs to --restore-with-cpu
The --restore-with-cpu option didn't use CpuConfig.cpu_names() to determine which CPU names are valid, instead it used a static list of known CPU names. This changeset makes the option parsing code use the CPU list from the CpuConfig module instead.
Diffstat (limited to 'configs/common/Options.py')
-rw-r--r--configs/common/Options.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/configs/common/Options.py b/configs/common/Options.py
index e651e96ec..f2bcbef0c 100644
--- a/configs/common/Options.py
+++ b/configs/common/Options.py
@@ -136,8 +136,7 @@ def addCommonOptions(parser):
parser.add_option("--work-cpus-checkpoint-count", action="store", type="int",
help="checkpoint and exit when active cpu count is reached")
parser.add_option("--restore-with-cpu", action="store", type="choice",
- default="atomic", choices = ["atomic", "timing",
- "detailed", "inorder"],
+ default="atomic", choices=CpuConfig.cpu_names(),
help = "cpu type for restoring from a checkpoint")