summaryrefslogtreecommitdiff
path: root/src/mem/physical.cc
diff options
context:
space:
mode:
authorRon Dreslinski <rdreslin@umich.edu>2006-11-12 10:41:18 -0500
committerRon Dreslinski <rdreslin@umich.edu>2006-11-12 10:41:18 -0500
commit1d5d9c83b416053ab94f17015b34f94de71ec146 (patch)
tree69059d13e1561f0e8e29d9e7de78b3019ebd7399 /src/mem/physical.cc
parent8354cfc7151f4623aedee1e4b32157aa4c038707 (diff)
parent5edfaefc78c72540a17f65973118eec873019f17 (diff)
downloadgem5-1d5d9c83b416053ab94f17015b34f94de71ec146.tar.xz
Merge zizzer:/bk/newmem
into zazzer.eecs.umich.edu:/z/rdreslin/m5bk/newmemcleanest --HG-- extra : convert_revision : 498304c24435437f8f1942bb8aeafe69ba22a089
Diffstat (limited to 'src/mem/physical.cc')
-rw-r--r--src/mem/physical.cc15
1 files changed, 15 insertions, 0 deletions
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<std::pair<Tick,PacketPtr> >::iterator i = transmitList.begin();
+ std::list<std::pair<Tick,PacketPtr> >::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.