Deleted Added
sdiff udiff text old ( 4877:8f00ebb86efd ) new ( 4885:385a051ad874 )
full compact
1
2/*
3 * Copyright (c) 2006 The Regents of The University of Michigan
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

--- 194 unchanged lines hidden (view full) ---

203 // from original request
204 buf->fixResponse(pkt);
205
206 // Check if this packet was expecting a response and it's a nacked
207 // packet, in which case we will never being seeing it
208 if (buf->expectResponse && pkt->wasNacked())
209 --outstandingResponses;
210
211 DPRINTF(BusBridge, "response, new dest %d\n", pkt->getDest());
212 delete buf;
213 }
214
215
216 if (pkt->isRequest() && !pkt->wasNacked()) {
217 ++queuedRequests;
218 }
219
220
221
222 Tick readyTime = curTick + delay;
223 PacketBuffer *buf = new PacketBuffer(pkt, readyTime);
224
225 // If we're about to put this packet at the head of the queue, we
226 // need to schedule an event to do the transmit. Otherwise there
227 // should already be an event scheduled for sending the head
228 // packet.
229 if (sendQueue.empty()) {
230 sendEvent.schedule(readyTime);
231 }

--- 177 unchanged lines hidden ---