diff options
author | Gabe Black <gabeblack@google.com> | 2017-10-18 20:50:57 -0700 |
---|---|---|
committer | Nikos Nikoleris <nikos.nikoleris@arm.com> | 2018-06-19 14:24:25 +0000 |
commit | 9494e7d16a18802b756fdc0e814837d5c98bbd86 (patch) | |
tree | 350a04e09fbb5f723b543f9346354443c5e76714 /src/mem/xbar.cc | |
parent | c31af7e89b89fbfecfad9634b2de8ec613f6fde3 (diff) | |
download | gem5-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.cc | 11 |
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 |