mem: Check return value of checkFunctional in SimpleMemory
Simple fix to ensure we only iterate until we are done.
This commit is contained in:
parent
38646d48eb
commit
377f081251
1 changed files with 6 additions and 2 deletions
|
@ -80,9 +80,13 @@ SimpleMemory::recvFunctional(PacketPtr pkt)
|
||||||
|
|
||||||
functionalAccess(pkt);
|
functionalAccess(pkt);
|
||||||
|
|
||||||
|
bool done = false;
|
||||||
|
auto p = packetQueue.begin();
|
||||||
// potentially update the packets in our packet queue as well
|
// potentially update the packets in our packet queue as well
|
||||||
for (auto i = packetQueue.begin(); i != packetQueue.end(); ++i)
|
while (!done && p != packetQueue.end()) {
|
||||||
pkt->checkFunctional(i->pkt);
|
done = pkt->checkFunctional(p->pkt);
|
||||||
|
++p;
|
||||||
|
}
|
||||||
|
|
||||||
pkt->popLabel();
|
pkt->popLabel();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue