base,tests: Expanded GTests for addr_range.hh
authorBrandon Potter <brandon.potter@amd.com>
Fri, 18 Oct 2019 18:43:14 +0000 (14:43 -0400)
committerBobby R. Bruce <bbruce@ucdavis.edu>
Wed, 20 Nov 2019 18:39:09 +0000 (18:39 +0000)
commitb4c9996d894118be04cdf4ed793b35a1d5001942
treecd3b53dd0d0f6c7cd10c71c72592d6859a33ff1f
parent1c4d64fb104245e7e655113155be02a5209e46c0
base,tests: Expanded GTests for addr_range.hh

These tests assume the "end address" is not included in the range. This
exposed some bugs in addr_range.hh which have been fixed. Where
appropriate code comments in addr_range.hh have been extended to improve
understanding of the class's behavior.

Hard-coded AddrRange values in the project have been updated to take
into account that end address is now exclusive. The python params.py
interface has been updated to conform to this new standard.

Change-Id: Idd1e75d5771d198c4b8142b28de0f3a6e9007a52
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22427
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/x86/tlb.cc
src/base/addr_range.hh
src/base/addr_range.test.cc
src/dev/arm/gic_v2.cc
src/dev/arm/gic_v3_distributor.cc
src/dev/arm/gic_v3_its.cc
src/dev/arm/gic_v3_redistributor.cc
src/python/m5/params.py
src/sim/system.cc