1# Copyright (c) 2012 ARM Limited 2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 169 unchanged lines hidden (view full) --- 178 # lowest bits above the block offset bits, and the numa_bit as the 179 # highest of those directory bits 180 numa_bit = block_size_bits + dir_bits - 1 181 182 for dir_cntrl in dir_cntrls: 183 total_mem_size.value += dir_cntrl.directory.size.value 184 dir_cntrl.directory.numa_high_bit = numa_bit 185 |
186 phys_mem_size = sum(map(lambda r: r.size(), system.mem_ranges)) |
187 assert(total_mem_size.value == phys_mem_size) 188 189 ruby_profiler = RubyProfiler(ruby_system = ruby, 190 num_of_sequencers = len(cpu_sequencers)) 191 ruby.network = network 192 ruby.profiler = ruby_profiler 193 ruby.mem_size = total_mem_size 194 ruby._cpu_ruby_ports = cpu_sequencers 195 ruby.random_seed = options.random_seed |