summaryrefslogtreecommitdiff
path: root/src/mem/xbar.cc
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2017-10-18 20:50:57 -0700
committerNikos Nikoleris <nikos.nikoleris@arm.com>2018-06-19 14:24:25 +0000
commit9494e7d16a18802b756fdc0e814837d5c98bbd86 (patch)
tree350a04e09fbb5f723b543f9346354443c5e76714 /src/mem/xbar.cc
parentc31af7e89b89fbfecfad9634b2de8ec613f6fde3 (diff)
downloadgem5-9494e7d16a18802b756fdc0e814837d5c98bbd86.tar.xz
mem: Use the caching built into AddrRangeMap in the xbar
Use that instead of caching built into the crossbar. Change-Id: If5a5355a0a1a6e532b14efc88a319de4c023f8c1 Reviewed-on: https://gem5-review.googlesource.com/5243 Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br> Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Diffstat (limited to 'src/mem/xbar.cc')
-rw-r--r--src/mem/xbar.cc11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/mem/xbar.cc b/src/mem/xbar.cc
index 1984a94aa..c3a5c83fe 100644
--- a/src/mem/xbar.cc
+++ b/src/mem/xbar.cc
@@ -327,17 +327,10 @@ BaseXBar::findPort(Addr addr)
// ranges of all connected slave modules
assert(gotAllAddrRanges);
- // Check the cache
- PortID dest_id = checkPortCache(addr);
- if (dest_id != InvalidPortID)
- return dest_id;
-
// Check the address map interval tree
auto i = portMap.contains(addr);
if (i != portMap.end()) {
- dest_id = i->second;
- updatePortCache(dest_id, i->first);
- return dest_id;
+ return i->second;
}
// Check if this matches the default range
@@ -518,8 +511,6 @@ BaseXBar::recvRangeChange(PortID master_port_id)
for (const auto& s: slavePorts)
s->sendRangeChange();
}
-
- clearPortCache();
}
AddrRangeList