summaryrefslogtreecommitdiff
path: root/src/base/addr_range.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/addr_range.hh')
-rw-r--r--src/base/addr_range.hh5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/base/addr_range.hh b/src/base/addr_range.hh
index 368a96401..1620a00d3 100644
--- a/src/base/addr_range.hh
+++ b/src/base/addr_range.hh
@@ -140,7 +140,10 @@ class AddrRange
*
* @return The size of the regions created by the interleaving bits
*/
- uint64_t granularity() const { return ULL(1) << intlvHighBit; }
+ uint64_t granularity() const
+ {
+ return ULL(1) << (intlvHighBit - intlvBits);
+ }
/**
* Determine the number of interleaved address stripes this range