changeset e507dc092ca3 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=e507dc092ca3
description:
base: Fix address range granularity calculations
This patch fixes a bug in the address range granularity
calculations. Previously it incorrectly used the high bit to establish
the size of the regions created, when it should really be looking at
the low bit.
diffstat:
src/base/addr_range.hh | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r d1e6329cd367 -r e507dc092ca3 src/base/addr_range.hh
--- a/src/base/addr_range.hh Thu Mar 07 05:55:02 2013 -0500
+++ b/src/base/addr_range.hh Thu Mar 07 05:55:03 2013 -0500
@@ -140,7 +140,10 @@
*
* @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
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev