base: Fix AddrRange::isSubset() check
authorNikos Nikoleris <nikos.nikoleris@arm.com>
Fri, 13 Dec 2019 16:25:49 +0000 (16:25 +0000)
committerNikos Nikoleris <nikos.nikoleris@arm.com>
Tue, 17 Dec 2019 09:41:08 +0000 (09:41 +0000)
commite63a5a1aeaf00773df7e95a87d5468a790e0c708
treeb28bc6be512df31488d2aaab2a6ab9ecadf7bc1a
parent41a8800950f706536111dd170dc487a8453574a1
base: Fix AddrRange::isSubset() check

Making _end non-inclusive, introduced a bug in isSubset() which was
checking if _end is included in the input address range. This CL
changes the behavior and now we test if _end - 1 is in the range.

Change-Id: Ib8822472b7c266e10d55f3d5cf22a46aa45c1fc7
Signed-off-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23663
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
src/base/addr_range.hh
src/base/addr_range.test.cc