Ruby.py (9793:6e6cefc1db1f) Ruby.py (9826:014ff1fbff6d)
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
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 mem: mem.range.size(),
187 system.memories.unproxy(system)))
186 phys_mem_size = sum(map(lambda r: r.size(), system.mem_ranges))
188 assert(total_mem_size.value == phys_mem_size)
189
190 ruby_profiler = RubyProfiler(ruby_system = ruby,
191 num_of_sequencers = len(cpu_sequencers))
192 ruby.network = network
193 ruby.profiler = ruby_profiler
194 ruby.mem_size = total_mem_size
195 ruby._cpu_ruby_ports = cpu_sequencers
196 ruby.random_seed = options.random_seed
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