base: Fix address range granularity calculation
authorAndreas Hansson <andreas.hansson@arm.com>
Thu, 27 Jun 2013 09:49:49 +0000 (05:49 -0400)
committerAndreas Hansson <andreas.hansson@arm.com>
Thu, 27 Jun 2013 09:49:49 +0000 (05:49 -0400)
commit997a6a4adda05ad1c3c205513b280214cb6e01c5
tree295786428c8fa3fad5409124cab66a14295a28eb
parentf330b3c28d489d28743f2c31b607d33036b37006
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.
src/base/addr_range.hh