summaryrefslogtreecommitdiff
path: root/configs/common/Options.py
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2012-01-05 11:04:25 -0600
committerNilay Vaish <nilay@cs.wisc.edu>2012-01-05 11:04:25 -0600
commita88ec980a454b4979120c08d2891606f8a1f3769 (patch)
tree884e8e4cfb7313729e902297142894374f456b5d /configs/common/Options.py
parentdaa4c7526acf97bf53b1cdfc6a4d6a327f1966dd (diff)
downloadgem5-a88ec980a454b4979120c08d2891606f8a1f3769.tar.xz
Config: Add an option of type 'choice' for cpu type
This patch adds a new option for cpu type. This option is of type 'choice' which is similar to a C++ enum, except that it takes string values as possible choices. Following options are being removed -- detailed, timing, inorder. --HG-- extra : rebase_source : 58885e2e8a88b6af8e6ff884a5922059dbb1a6cb
Diffstat (limited to 'configs/common/Options.py')
-rw-r--r--configs/common/Options.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/configs/common/Options.py b/configs/common/Options.py
index e69f3a527..d5ea85090 100644
--- a/configs/common/Options.py
+++ b/configs/common/Options.py
@@ -27,9 +27,9 @@
# Authors: Lisa Hsu
# system options
-parser.add_option("-d", "--detailed", action="store_true")
-parser.add_option("-t", "--timing", action="store_true")
-parser.add_option("--inorder", action="store_true")
+parser.add_option("-c", "--cpu-type", type="choice", default="atomic",
+ choices = ["atomic", "timing", "detailed", "inorder"],
+ help = "type of cpu to run with")
parser.add_option("-n", "--num-cpus", type="int", default=1)
parser.add_option("--caches", action="store_true")
parser.add_option("--l2cache", action="store_true")