From: Ron Dreslinski Date: Sun, 12 Nov 2006 14:30:12 +0000 (-0500) Subject: Physical memory overrides the tport version of recvFunctional, need to do the X-Git-Tag: m5_2.0_beta2~57^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5edfaefc78c72540a17f65973118eec873019f17;p=gem5.git Physical memory overrides the tport version of recvFunctional, need to do the check here for responses that match as well --HG-- extra : convert_revision : 69c3628a381a9da885fab0272abf40c3411a5f0f --- diff --git a/src/mem/physical.cc b/src/mem/physical.cc index 39eb63108..94f60ad80 100644 --- a/src/mem/physical.cc +++ b/src/mem/physical.cc @@ -288,6 +288,21 @@ PhysicalMemory::MemoryPort::recvAtomic(PacketPtr pkt) void PhysicalMemory::MemoryPort::recvFunctional(PacketPtr pkt) { + //Since we are overriding the function, make sure to have the impl of the + //check or functional accesses here. + std::list >::iterator i = transmitList.begin(); + std::list >::iterator end = transmitList.end(); + bool notDone = true; + + while (i != end && notDone) { + PacketPtr target = i->second; + // If the target contains data, and it overlaps the + // probed request, need to update data + if (target->intersect(pkt)) + notDone = fixPacket(pkt, target); + i++; + } + // Default implementation of SimpleTimingPort::recvFunctional() // calls recvAtomic() and throws away the latency; we can save a // little here by just not calculating the latency.