From: Andreas Hansson Date: Tue, 19 Feb 2013 10:56:05 +0000 (-0500) Subject: base: Fix a bug in the address interleaving X-Git-Tag: stable_2013_06_16~102 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f69d431ede9b815ea4b63a2d20237ed3e79df169;p=gem5.git base: Fix a bug in the address interleaving This patch fixes a minor (but important) typo in the matching of an address to an interleaved range. --- diff --git a/src/base/addr_range.hh b/src/base/addr_range.hh index 546d81611..368a96401 100644 --- a/src/base/addr_range.hh +++ b/src/base/addr_range.hh @@ -259,7 +259,7 @@ class AddrRange // no interleaving, or with interleaving also if the selected // bits from the address match the interleaving value return a >= _start && a <= _end && - (interleaved() || + (!interleaved() || (bits(a, intlvHighBit, intlvHighBit - intlvBits + 1) == intlvMatch)); }