diff options
author | Brad Beckmann <Brad.Beckmann@amd.com> | 2010-08-20 11:44:09 -0700 |
---|---|---|
committer | Brad Beckmann <Brad.Beckmann@amd.com> | 2010-08-20 11:44:09 -0700 |
commit | 5c801090a3e7961fe71c308a629c4529d2dc0de2 (patch) | |
tree | 4c447dc6acd73222870befbabfaee625a61bd204 /configs/example/memtest-ruby.py | |
parent | eb1e5636e31f7dd0d1dc650ce46a90a4ce7c6832 (diff) | |
download | gem5-5c801090a3e7961fe71c308a629c4529d2dc0de2.tar.xz |
config: reorganized how ruby specifies command-line options
Diffstat (limited to 'configs/example/memtest-ruby.py')
-rw-r--r-- | configs/example/memtest-ruby.py | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/configs/example/memtest-ruby.py b/configs/example/memtest-ruby.py index 16d86f0bc..567af03d0 100644 --- a/configs/example/memtest-ruby.py +++ b/configs/example/memtest-ruby.py @@ -69,20 +69,27 @@ parser.add_option("--progress", type="int", default=1000, "[default: %default]") # -# Set the default cache size and associativity to be very small to encourage -# races between requests and writebacks. +# Add the ruby specific and protocol specific options # -parser.add_option("--l1d_size", type="string", default="256B") -parser.add_option("--l1i_size", type="string", default="256B") -parser.add_option("--l2_size", type="string", default="512B") -parser.add_option("--l1d_assoc", type="int", default=2) -parser.add_option("--l1i_assoc", type="int", default=2) -parser.add_option("--l2_assoc", type="int", default=2) +Ruby.define_options(parser) execfile(os.path.join(config_root, "common", "Options.py")) (options, args) = parser.parse_args() +# +# Set the default cache size and associativity to be very small to encourage +# races between requests and writebacks. +# +options.l1d_size="256B" +options.l1i_size="256B" +options.l2_size="512B" +options.l3_size="1kB" +options.l1d_assoc=2 +options.l1i_assoc=2 +options.l2_assoc=2 +options.l3_assoc=2 + if args: print "Error: script doesn't take any positional arguments" sys.exit(1) |