From 134cc3d48dc389aecbe6bebe27482e5e378eb692 Mon Sep 17 00:00:00 2001 From: Brad Beckmann Date: Fri, 29 Jan 2010 20:29:23 -0800 Subject: ruby: convert to M5 MemorySize Converted both ruby caches and directory memory to use the M5 MemorySize python type. --- configs/ruby/Ruby.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'configs/ruby/Ruby.py') diff --git a/configs/ruby/Ruby.py b/configs/ruby/Ruby.py index abc9a8df5..7003e6266 100644 --- a/configs/ruby/Ruby.py +++ b/configs/ruby/Ruby.py @@ -54,8 +54,12 @@ def create_system(options, physmem, piobus = None, dma_devices = []): # network = SimpleNetwork(topology = makeCrossbar(all_cntrls)) - mem_size_mb = sum([int(dir_cntrl.directory.size_mb) \ - for dir_cntrl in dir_cntrls]) + # + # determine the total memory size of the ruby system + # + total_mem_size = MemorySize('0B') + for dir_cntrl in dir_cntrls: + total_mem_size.value += dir_cntrl.directory.size.value ruby_profiler = RubyProfiler(num_of_sequencers = len(cpu_sequencers)) @@ -66,7 +70,7 @@ def create_system(options, physmem, piobus = None, dma_devices = []): debug = RubyDebug(filter_string = 'none', verbosity_string = 'none', protocol_trace = False), - mem_size_mb = mem_size_mb) + mem_size = total_mem_size) ruby.cpu_ruby_ports = cpu_sequencers -- cgit v1.2.3