diff options
author | Brad Beckmann <Brad.Beckmann@amd.com> | 2009-11-18 13:55:58 -0800 |
---|---|---|
committer | Brad Beckmann <Brad.Beckmann@amd.com> | 2009-11-18 13:55:58 -0800 |
commit | 90d6e2652fc8590116d436a1143700e11893cfa4 (patch) | |
tree | 47b58a565a62897fd9fd0d4184409ad1f4c0f713 /configs/example | |
parent | dce53610c374eba2a8dae236a13b3197cd42edc6 (diff) | |
download | gem5-90d6e2652fc8590116d436a1143700e11893cfa4.tar.xz |
ruby: included ruby config parameter ports per core
Slightly improved the major hack need to correctly assign the number of ports
per core. CPUs have two ports: icache + dcache. MemTester has one port.
Diffstat (limited to 'configs/example')
-rw-r--r-- | configs/example/memtest-ruby.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/configs/example/memtest-ruby.py b/configs/example/memtest-ruby.py index 0305a3096..e47b8e0a3 100644 --- a/configs/example/memtest-ruby.py +++ b/configs/example/memtest-ruby.py @@ -86,8 +86,11 @@ cpus = [ MemTest(atomic=options.atomic, max_loads=options.maxloads, \ for i in xrange(options.testers) ] # create the desired simulated system -# ruby memory -ruby_memory = ruby_config.generate("MI_example-homogeneous.rb", options.testers) +# ruby memory must be at least 16 MB to work with the mem tester +ruby_memory = ruby_config.generate("MI_example-homogeneous.rb", + cores = options.testers, + memory_size = 16, + ports_per_cpu = 1) system = System(cpu = cpus, funcmem = PhysicalMemory(), physmem = ruby_memory) |