config: command line option to specify ruby output file
--HG-- extra : rebase_source : df2237b2ce01b1a3e1d6f112a62deadde4d92420
This commit is contained in:
parent
8daad28a90
commit
aab7397324
1 changed files with 4 additions and 1 deletions
|
@ -58,13 +58,16 @@ def define_options(parser):
|
||||||
parser.add_option("--random_seed", type="int", default=1234,
|
parser.add_option("--random_seed", type="int", default=1234,
|
||||||
help="Used for seeding the random number generator")
|
help="Used for seeding the random number generator")
|
||||||
|
|
||||||
|
parser.add_option("--ruby_stats", type="string", default="ruby.stats")
|
||||||
|
|
||||||
protocol = buildEnv['PROTOCOL']
|
protocol = buildEnv['PROTOCOL']
|
||||||
exec "import %s" % protocol
|
exec "import %s" % protocol
|
||||||
eval("%s.define_options(parser)" % protocol)
|
eval("%s.define_options(parser)" % protocol)
|
||||||
|
|
||||||
def create_system(options, system, piobus = None, dma_devices = []):
|
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
|
ruby = system.ruby
|
||||||
|
|
||||||
protocol = buildEnv['PROTOCOL']
|
protocol = buildEnv['PROTOCOL']
|
||||||
|
|
Loading…
Reference in a new issue