From a8ea70dac6592b63cf957acd33a938189f1712af Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Fri, 29 Jan 2010 20:29:18 -0800 Subject: ruby: Calculate system total memory capacity in Python rather than in RubySystem object. --- configs/example/memtest-ruby.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'configs/example/memtest-ruby.py') 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) # ----------------------- -- cgit v1.2.3