changeset 704c03c216f7 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=704c03c216f7
description:
base: Fix address range granularity calculation
This patch fixes a bug in the granularity calculation. For example, if
the high bit is 6 (counting from 0) and we have one interleaving bit,
then the granularity is now 2 ** (6 - 1 + 1) = 64.
diffstat:
src/base/addr_range.hh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 0742b0ccc430 -r 704c03c216f7 src/base/addr_range.hh
--- a/src/base/addr_range.hh Thu Jun 27 05:49:49 2013 -0400
+++ b/src/base/addr_range.hh Thu Jun 27 05:49:49 2013 -0400
@@ -142,7 +142,7 @@
*/
uint64_t granularity() const
{
- return ULL(1) << (intlvHighBit - intlvBits);
+ return ULL(1) << (intlvHighBit - intlvBits + 1);
}
/**
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev