summaryrefslogtreecommitdiff
path: root/configs/ruby
diff options
context:
space:
mode:
authorgloh <none@none>2011-12-01 10:08:52 -0800
committergloh <none@none>2011-12-01 10:08:52 -0800
commitaab7397324aaaf612d4cb11300980d4b8e19e237 (patch)
tree02a1da4bb337e2b4a00df27d5a84bb655e3fcf94 /configs/ruby
parent8daad28a90ff8ec7044f9c40f0583387cef71792 (diff)
downloadgem5-aab7397324aaaf612d4cb11300980d4b8e19e237.tar.xz
config: command line option to specify ruby output file
--HG-- extra : rebase_source : df2237b2ce01b1a3e1d6f112a62deadde4d92420
Diffstat (limited to 'configs/ruby')
-rw-r--r--configs/ruby/Ruby.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/configs/ruby/Ruby.py b/configs/ruby/Ruby.py
index e83e7f23f..1562c531c 100644
--- a/configs/ruby/Ruby.py
+++ b/configs/ruby/Ruby.py
@@ -58,13 +58,16 @@ def define_options(parser):
parser.add_option("--random_seed", type="int", default=1234,
help="Used for seeding the random number generator")
+ parser.add_option("--ruby_stats", type="string", default="ruby.stats")
+
protocol = buildEnv['PROTOCOL']
exec "import %s" % protocol
eval("%s.define_options(parser)" % protocol)
def create_system(options, system, piobus = None, dma_devices = []):
- system.ruby = RubySystem(clock = options.clock)
+ system.ruby = RubySystem(clock = options.clock,
+ stats_filename = options.ruby_stats)
ruby = system.ruby
protocol = buildEnv['PROTOCOL']