summaryrefslogtreecommitdiff
path: root/src/mem/ruby/common
diff options
context:
space:
mode:
authorBrad Beckmann <Brad.Beckmann@amd.com>2010-08-20 11:46:13 -0700
committerBrad Beckmann <Brad.Beckmann@amd.com>2010-08-20 11:46:13 -0700
commit593ae7457e0bd1150a08535ee6c79d52a0dfd175 (patch)
tree7df284f825f945eb445ee5741faff41a3419b24a /src/mem/ruby/common
parentac5bb214e3dd8ba91feebd9c50ae7d3d9028668c (diff)
downloadgem5-593ae7457e0bd1150a08535ee6c79d52a0dfd175.tar.xz
ruby: fixed DirectoryMemory's numa_high_bit configuration
This fix includes the off-by-one bit selection bug for numa mapping.
Diffstat (limited to 'src/mem/ruby/common')
-rw-r--r--src/mem/ruby/common/Address.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/ruby/common/Address.hh b/src/mem/ruby/common/Address.hh
index dc58d012f..23b683d69 100644
--- a/src/mem/ruby/common/Address.hh
+++ b/src/mem/ruby/common/Address.hh
@@ -187,7 +187,7 @@ Address::bitRemove(int small, int big) const
physical_address_t higher_bits = m_address & mask;
// Shift the valid high bits over the removed section
- higher_bits = higher_bits >> (big - small);
+ higher_bits = higher_bits >> (big - small + 1);
return (higher_bits | lower_bits);
}
}