summaryrefslogtreecommitdiff
path: root/src/base
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2013-02-19 05:56:05 -0500
committerAndreas Hansson <andreas.hansson@arm.com>2013-02-19 05:56:05 -0500
commitf69d431ede9b815ea4b63a2d20237ed3e79df169 (patch)
tree55b3c3fe4e9c839d1f4300993af31aff7248b606 /src/base
parent9947923c605bdbd864aebaa47e6a062390288652 (diff)
downloadgem5-f69d431ede9b815ea4b63a2d20237ed3e79df169.tar.xz
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.
Diffstat (limited to 'src/base')
-rw-r--r--src/base/addr_range.hh2
1 files changed, 1 insertions, 1 deletions
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));
}