config: fixed numa high bit setting bug
This commit is contained in:
parent
08b360e0e0
commit
8f1f83d13d
1 changed files with 5 additions and 6 deletions
|
@ -108,12 +108,11 @@ def create_system(options, system, piobus = None, dma_devices = []):
|
||||||
numa_bit = options.numa_high_bit
|
numa_bit = options.numa_high_bit
|
||||||
else:
|
else:
|
||||||
# if not specified, use the lowest bits above the block offest
|
# if not specified, use the lowest bits above the block offest
|
||||||
if options.numa_high_bit == 0:
|
if dir_bits > 0:
|
||||||
if dir_bits > 0:
|
# add 5 because bits 0-5 are the block offset
|
||||||
# add 5 because bits 0-5 are the block offset
|
numa_bit = dir_bits + 5
|
||||||
numa_bit = dir_bits + 5
|
else:
|
||||||
else:
|
numa_bit = 6
|
||||||
numa_bit = 6
|
|
||||||
|
|
||||||
for dir_cntrl in dir_cntrls:
|
for dir_cntrl in dir_cntrls:
|
||||||
total_mem_size.value += dir_cntrl.directory.size.value
|
total_mem_size.value += dir_cntrl.directory.size.value
|
||||||
|
|
Loading…
Reference in a new issue