93a94,101
> if options.numa_high_bit:
> dir_bits = int(math.log(options.num_dirs, 2))
> intlv_size = 2 ** (options.numa_high_bit - dir_bits + 1)
> else:
> # if the numa_bit is not specified, set the directory bits as the
> # lowest bits above the block offset bits
> intlv_size = options.cacheline_size
>
104a113
> dir_ranges = []
108c117
< int(math.log(options.num_dirs, 2)), options.cacheline_size)
---
> int(math.log(options.num_dirs, 2)), intlv_size)
113a123
> dir_ranges.append(mem_ctrl.range)
120a131
> dir_cntrl.addr_ranges = dir_ranges
202,203c213
< def create_directories(options, mem_ranges, bootmem, ruby_system,
< system):
---
> def create_directories(options, bootmem, ruby_system, system):
205,214d214
< if options.numa_high_bit:
< numa_bit = options.numa_high_bit
< else:
< # if the numa_bit is not specified, set the directory bits as the
< # lowest bits above the block offset bits, and the numa_bit as the
< # highest of those directory bits
< dir_bits = int(math.log(options.num_dirs, 2))
< block_size_bits = int(math.log(options.cacheline_size, 2))
< numa_bit = block_size_bits + dir_bits - 1
<
216,223d215
< dir_ranges = []
< for r in mem_ranges:
< addr_range = m5.objects.AddrRange(r.start, size = r.size(),
< intlvHighBit = numa_bit,
< intlvBits = dir_bits,
< intlvMatch = i)
< dir_ranges.append(addr_range)
<
228d219
< dir_cntrl.addr_ranges = dir_ranges