summaryrefslogtreecommitdiff
path: root/configs/example/ruby_mem_test.py
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2012-04-05 10:45:26 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2012-04-05 10:45:26 -0400
commitf1a60906132fb816f80917d830b34df5e5d87ad4 (patch)
tree5fc375a338ac36fb5871e16ba6842273a7578beb /configs/example/ruby_mem_test.py
parentaab2001ab7a8196eb01be1a05977400fed8d8d79 (diff)
downloadgem5-f1a60906132fb816f80917d830b34df5e5d87ad4.tar.xz
Ruby: Fix the example configurations option parsing
This patch fixes the, currently broken, Ruby example scripts to reflect the changes in the parsing of command-line options.
Diffstat (limited to 'configs/example/ruby_mem_test.py')
-rw-r--r--configs/example/ruby_mem_test.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/configs/example/ruby_mem_test.py b/configs/example/ruby_mem_test.py
index 20c25e833..3fec09c47 100644
--- a/configs/example/ruby_mem_test.py
+++ b/configs/example/ruby_mem_test.py
@@ -36,6 +36,7 @@ import os, optparse, sys
addToPath('../common')
addToPath('../ruby')
+import Options
import Ruby
# Get paths we might need. It's expected this file is in m5/configs/example.
@@ -44,6 +45,7 @@ config_root = os.path.dirname(config_path)
m5_root = os.path.dirname(config_root)
parser = optparse.OptionParser()
+Options.addCommonOptions(parser)
parser.add_option("-l", "--maxloads", metavar="N", default=0,
help="Stop after N loads")