summaryrefslogtreecommitdiff
path: root/configs/ruby/MOESI_hammer.py
diff options
context:
space:
mode:
authorJason Power ext:(%2C%20Joel%20Hestness%20%3Chestness%40cs.wisc.edu%3E) <power.jg@gmail.com>2012-10-27 16:01:09 -0500
committerJason Power ext:(%2C%20Joel%20Hestness%20%3Chestness%40cs.wisc.edu%3E) <power.jg@gmail.com>2012-10-27 16:01:09 -0500
commit931ec6b7ccac5978c13c1ec9283d23f51085ddab (patch)
treecdb4311e4edb1cee40e4d76d56123dde5b4b9e3e /configs/ruby/MOESI_hammer.py
parenta4d8996fd9224212ab042fd15316ba451201a11f (diff)
downloadgem5-931ec6b7ccac5978c13c1ec9283d23f51085ddab.tar.xz
Ruby: Use block size in configuring directory bits in address
This patch replaces hard coded values used in Ruby's configuration files for setting directory bits with values based on the block size in use.
Diffstat (limited to 'configs/ruby/MOESI_hammer.py')
-rw-r--r--configs/ruby/MOESI_hammer.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/configs/ruby/MOESI_hammer.py b/configs/ruby/MOESI_hammer.py
index 434f5c8db..d0f38d922 100644
--- a/configs/ruby/MOESI_hammer.py
+++ b/configs/ruby/MOESI_hammer.py
@@ -145,18 +145,18 @@ def create_system(options, system, piobus, dma_ports, ruby_system):
dir_bits = int(math.log(options.num_dirs, 2))
pf_bits = int(math.log(pf_size.value, 2))
if options.numa_high_bit:
- if options.numa_high_bit > 0:
+ if options.pf_on or options.dir_on:
# if numa high bit explicitly set, make sure it does not overlap
# with the probe filter index
assert(options.numa_high_bit - dir_bits > pf_bits)
# set the probe filter start bit to just above the block offset
- pf_start_bit = 6
+ pf_start_bit = block_size_bits
else:
if dir_bits > 0:
- pf_start_bit = dir_bits + 5
+ pf_start_bit = dir_bits + block_size_bits - 1
else:
- pf_start_bit = 6
+ pf_start_bit = block_size_bits
for i in xrange(options.num_dirs):
#