projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2ec232
)
config: Add missing CPUs to --restore-with-cpu
author
Andreas Sandberg
<andreas@sandberg.pp.se>
Mon, 3 Jun 2013 11:40:05 +0000
(13:40 +0200)
committer
Andreas Sandberg
<andreas@sandberg.pp.se>
Mon, 3 Jun 2013 11:40:05 +0000
(13:40 +0200)
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.
configs/common/Options.py
patch
|
blob
|
history
diff --git
a/configs/common/Options.py
b/configs/common/Options.py
index e651e96ecfaa5352096fa100464480f0b702143a..f2bcbef0cd2b67caa660f59166c19ab571e5cb3a 100644
(file)
--- 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")