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/ruby/Ruby.py | |
parent | eb1e5636e31f7dd0d1dc650ce46a90a4ce7c6832 (diff) | |
download | gem5-5c801090a3e7961fe71c308a629c4529d2dc0de2.tar.xz |
config: reorganized how ruby specifies command-line options
Diffstat (limited to 'configs/ruby/Ruby.py')
-rw-r--r-- | configs/ruby/Ruby.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/configs/ruby/Ruby.py b/configs/ruby/Ruby.py index 66293af64..77c975842 100644 --- a/configs/ruby/Ruby.py +++ b/configs/ruby/Ruby.py @@ -31,6 +31,27 @@ import m5 from m5.objects import * from m5.defines import buildEnv +def define_options(parser): + # ruby network options + parser.add_option("--topology", type="string", default="Crossbar", + help="check src/mem/ruby/network/topologies for complete set") + parser.add_option("--mesh-rows", type="int", default=1, + help="the number of rows in the mesh topology") + parser.add_option("--garnet-network", type="string", default=none, + help="'fixed'|'flexible'") + + # ruby mapping options + parser.add_option("--numa-high-bit", type="int", default=none, + help="high order address bit to use for numa mapping") + + # ruby sparse memory options + parser.add_option("--use-map", action="store_true", default=False) + parser.add_option("--map-levels", type="int", default=4) + + protocol = buildEnv['PROTOCOL'] + exec "import %s" % protocol + eval("%s.define_options(parser)" % protocol) + def create_system(options, physmem, piobus = None, dma_devices = []): protocol = buildEnv['PROTOCOL'] |