summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
authorSteve Reinhardt <steve.reinhardt@amd.com>2010-01-29 20:29:18 -0800
committerSteve Reinhardt <steve.reinhardt@amd.com>2010-01-29 20:29:18 -0800
commita8ea70dac6592b63cf957acd33a938189f1712af (patch)
tree0313c8ec3f4760c43468912924eac9a3c3dc05ec /configs
parent0b54f1db8e8af9094229a55fab302ebfb84c31b5 (diff)
downloadgem5-a8ea70dac6592b63cf957acd33a938189f1712af.tar.xz
ruby: Calculate system total memory capacity in Python
rather than in RubySystem object.
Diffstat (limited to 'configs')
-rw-r--r--configs/example/memtest-ruby.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/configs/example/memtest-ruby.py b/configs/example/memtest-ruby.py
index a520754fb..c2045ff2d 100644
--- a/configs/example/memtest-ruby.py
+++ b/configs/example/memtest-ruby.py
@@ -127,10 +127,14 @@ for cpu in cpus:
network = SimpleNetwork(topology = makeCrossbar(l1_cntrl_nodes + \
dir_cntrl_nodes))
+mem_size_mb = sum([int(dir_cntrl.directory.size_mb) \
+ for dir_cntrl in dir_cntrl_nodes])
+
system.ruby = RubySystem(network = network,
profiler = RubyProfiler(),
tracer = RubyTracer(),
- debug = RubyDebug())
+ debug = RubyDebug(),
+ mem_size_mb = mem_size_mb)
# -----------------------