From f69d431ede9b815ea4b63a2d20237ed3e79df169 Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Tue, 19 Feb 2013 05:56:05 -0500 Subject: [PATCH] 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. --- src/base/addr_range.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } -- 2.30.2