summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2012-03-01 11:36:59 -0600
committerNilay Vaish <nilay@cs.wisc.edu>2012-03-01 11:36:59 -0600
commite11847bfa949481322f2031049402a093ed442a7 (patch)
tree6e9e82d4abfadb2cebf3c259a7e7a0b1b27d290a /configs
parente5ac647fc96bae316cdea628e49de2a5e3918b78 (diff)
downloadgem5-e11847bfa949481322f2031049402a093ed442a7.tar.xz
Config: make option ruby available always
Diffstat (limited to 'configs')
-rw-r--r--configs/common/Options.py1
-rw-r--r--configs/example/se.py6
2 files changed, 3 insertions, 4 deletions
diff --git a/configs/common/Options.py b/configs/common/Options.py
index 0932f2629..5fd6177c9 100644
--- a/configs/common/Options.py
+++ b/configs/common/Options.py
@@ -48,6 +48,7 @@ parser.add_option("--l1i_assoc", type="int", default=2)
parser.add_option("--l2_assoc", type="int", default=8)
parser.add_option("--l3_assoc", type="int", default=16)
parser.add_option("--cacheline_size", type="int", default=64)
+parser.add_option("--ruby", action="store_true")
# Run duration options
parser.add_option("-m", "--maxtick", type="int", default=m5.MaxTick,
diff --git a/configs/example/se.py b/configs/example/se.py
index de98fa002..f2a26709e 100644
--- a/configs/example/se.py
+++ b/configs/example/se.py
@@ -82,10 +82,8 @@ parser.add_option("--errout", default="", help="Redirect stderr to a file.")
execfile(os.path.join(config_root, "common", "Options.py"))
-if buildEnv['PROTOCOL'] != 'None':
- parser.add_option("--ruby", action="store_true")
- if '--ruby' in sys.argv:
- Ruby.define_options(parser)
+if '--ruby' in sys.argv:
+ Ruby.define_options(parser)
(options, args) = parser.parse_args()