Bus: Only update port cache when there is an item to update it with.
--HG-- extra : convert_revision : 84848fd48bb9e6693a0518c862364142b1969aa8
This commit is contained in:
parent
d167e2bb97
commit
4c7eb21119
1 changed files with 4 additions and 3 deletions
|
@ -307,9 +307,10 @@ Bus::findPort(Addr addr)
|
|||
dest_id = checkPortCache(addr);
|
||||
if (dest_id == -1) {
|
||||
PortIter i = portMap.find(RangeSize(addr,1));
|
||||
if (i != portMap.end())
|
||||
dest_id = i->second;
|
||||
updatePortCache(dest_id, i->first.start, i->first.end);
|
||||
if (i != portMap.end()) {
|
||||
dest_id = i->second;
|
||||
updatePortCache(dest_id, i->first.start, i->first.end);
|
||||
}
|
||||
}
|
||||
|
||||
// Check if this matches the default range
|
||||
|
|
Loading…
Reference in a new issue