- std::list<std::pair<Tick,PacketPtr> >::iterator i = transmitList.begin();
- std::list<std::pair<Tick,PacketPtr> >::iterator end = transmitList.end();
- bool done = false;
-
- while (i != end && !done) {
- PacketPtr target = i->second;
- // If the target contains data, and it overlaps the
- // probed request, need to update data
- if (target->intersect(pkt))
- done = fixPacket(pkt, target);
-
- }
-
- //Then just do an atomic access and throw away the returned latency
- if (pkt->result != Packet::Success)
- recvAtomic(pkt);
-}
-
-bool
-SimpleTimingPort::recvTiming(PacketPtr pkt)
-{
- // If the device is only a slave, it should only be sending
- // responses, which should never get nacked. There used to be
- // code to hanldle nacks here, but I'm pretty sure it didn't work
- // correctly with the drain code, so that would need to be fixed
- // if we ever added it back.
- assert(pkt->result != Packet::Nacked);
- Tick latency = recvAtomic(pkt);
- // turn packet around to go back to requester if response expected
- if (pkt->needsResponse()) {
- pkt->makeTimingResponse();
- sendTiming(pkt, latency);
- }
- else {
- if (pkt->cmd != Packet::UpgradeReq)
- {
- delete pkt->req;
- delete pkt;
- }
- }
- return true;