- // 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;