summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPau Cabre <pau.cabre@metempsy.com>2017-09-01 14:06:33 +0200
committerPau Cabre <pau.cabre@metempsy.com>2017-09-01 14:03:18 +0000
commit29d7c72b89949199653ab05f5bbb298c733b08b7 (patch)
tree471b6211b0a35be1fedd9b4cb0e279262eab5e21 /src
parent8878b80f8390b76e1582bfe65e6fc3483fae1c55 (diff)
downloadgem5-29d7c72b89949199653ab05f5bbb298c733b08b7.tar.xz
cpu-minor: Fix for addr range coverage calculation
Coverage was wrongly set to PartialAddrRangeCoverage in the case of disjoint adjacent ranges Change-Id: I29aaf5145e6cdcf5f0b8f4e009d57ee57bd4c944 Signed-off-by: Pau Cabre <pau.cabre@metempsy.com> Reviewed-on: https://gem5-review.googlesource.com/4640 Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src')
-rw-r--r--src/cpu/minor/lsq.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/minor/lsq.cc b/src/cpu/minor/lsq.cc
index bf2612071..b7d5360ac 100644
--- a/src/cpu/minor/lsq.cc
+++ b/src/cpu/minor/lsq.cc
@@ -97,7 +97,7 @@ LSQ::LSQRequest::containsAddrRangeOf(
AddrRangeCoverage ret;
- if (req1_addr > req2_end_addr || req1_end_addr < req2_addr)
+ if (req1_addr >= req2_end_addr || req1_end_addr <= req2_addr)
ret = NoAddrRangeCoverage;
else if (req1_addr <= req2_addr && req1_end_addr >= req2_end_addr)
ret = FullAddrRangeCoverage;