base: Fix a bug in the address interleaving
authorAndreas Hansson <andreas.hansson@arm.com>
Tue, 19 Feb 2013 10:56:05 +0000 (05:56 -0500)
committerAndreas Hansson <andreas.hansson@arm.com>
Tue, 19 Feb 2013 10:56:05 +0000 (05:56 -0500)
This patch fixes a minor (but important) typo in the matching of an
address to an interleaved range.

src/base/addr_range.hh

index 546d8161155b24a329ad3656aef768411ba3542e..368a96401cfa8a85e50b2d573ad0df9e6154270e 100644 (file)
@@ -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));
     }