changeset 051bc173ea72 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=051bc173ea72
description:
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:
configs/example/ruby_direct_test.py | 2 ++
configs/example/ruby_mem_test.py | 2 ++
configs/example/ruby_network_test.py | 3 +++
configs/example/ruby_random_test.py | 2 ++
4 files changed, 9 insertions(+), 0 deletions(-)
diffs (77 lines):
diff -r bc3a389d1e37 -r 051bc173ea72 configs/example/ruby_direct_test.py
--- a/configs/example/ruby_direct_test.py Thu Apr 05 10:44:35 2012 -0400
+++ b/configs/example/ruby_direct_test.py Thu Apr 05 10:45:26 2012 -0400
@@ -36,6 +36,7 @@
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 @@
m5_root = os.path.dirname(config_root)
parser = optparse.OptionParser()
+Options.addCommonOptions(parser)
parser.add_option("-l", "--requests", metavar="N", default=100,
help="Stop after N requests")
diff -r bc3a389d1e37 -r 051bc173ea72 configs/example/ruby_mem_test.py
--- a/configs/example/ruby_mem_test.py Thu Apr 05 10:44:35 2012 -0400
+++ b/configs/example/ruby_mem_test.py Thu Apr 05 10:45:26 2012 -0400
@@ -36,6 +36,7 @@
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 @@
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")
diff -r bc3a389d1e37 -r 051bc173ea72 configs/example/ruby_network_test.py
--- a/configs/example/ruby_network_test.py Thu Apr 05 10:44:35 2012 -0400
+++ b/configs/example/ruby_network_test.py Thu Apr 05 10:45:26 2012 -0400
@@ -35,6 +35,8 @@
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.
@@ -43,6 +45,7 @@
m5_root = os.path.dirname(config_root)
parser = optparse.OptionParser()
+Options.addCommonOptions(parser)
parser.add_option("--synthetic", type="int", default=0,
help="Synthetic Traffic type. 0 = Uniform Random,\
diff -r bc3a389d1e37 -r 051bc173ea72 configs/example/ruby_random_test.py
--- a/configs/example/ruby_random_test.py Thu Apr 05 10:44:35 2012 -0400
+++ b/configs/example/ruby_random_test.py Thu Apr 05 10:45:26 2012 -0400
@@ -36,6 +36,7 @@
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 @@
m5_root = os.path.dirname(config_root)
parser = optparse.OptionParser()
+Options.addCommonOptions(parser)
parser.add_option("-l", "--checks", metavar="N", default=100,
help="Stop after N checks (loads)")
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev