Deleted Added
sdiff udiff text old ( 9148:a7a72f42919e ) new ( 9232:3bb99fab80d4 )
full compact
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

--- 174 unchanged lines hidden (view full) ---

183 numa_bit = dir_bits + 5
184 else:
185 numa_bit = 6
186
187 for dir_cntrl in dir_cntrls:
188 total_mem_size.value += dir_cntrl.directory.size.value
189 dir_cntrl.directory.numa_high_bit = numa_bit
190
191 phys_mem_size = 0
192 for mem in system.memories.unproxy(system):
193 phys_mem_size += long(mem.range.second) - long(mem.range.first) + 1
194 assert(total_mem_size.value == phys_mem_size)
195
196 ruby_profiler = RubyProfiler(ruby_system = ruby,
197 num_of_sequencers = len(cpu_sequencers))
198 ruby.network = network
199 ruby.profiler = ruby_profiler
200 ruby.mem_size = total_mem_size
201 ruby._cpu_ruby_ports = cpu_sequencers
202 ruby.random_seed = options.random_seed