bridge.cc (10405:7a618c07e663) | bridge.cc (10572:fc4c90a7d2f5) |
---|---|
1/* 2 * Copyright (c) 2011-2013 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 228 unchanged lines hidden (view full) --- 237 // corresponding request state should be stored in the packet's 238 // senderState field. 239 RequestState *req_state = 240 dynamic_cast<RequestState*>(pkt->popSenderState()); 241 assert(req_state != NULL); 242 pkt->setDest(req_state->origSrc); 243 delete req_state; 244 | 1/* 2 * Copyright (c) 2011-2013 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 228 unchanged lines hidden (view full) --- 237 // corresponding request state should be stored in the packet's 238 // senderState field. 239 RequestState *req_state = 240 dynamic_cast<RequestState*>(pkt->popSenderState()); 241 assert(req_state != NULL); 242 pkt->setDest(req_state->origSrc); 243 delete req_state; 244 |
245 // the bridge assumes that at least one crossbar has set the 246 // destination field of the packet 247 assert(pkt->isDestValid()); | 245 // the bridge sets the destination irrespective of it is valid or 246 // not, as it is checked in the crossbar |
248 DPRINTF(Bridge, "response, new dest %d\n", pkt->getDest()); 249 250 // If we're about to put this packet at the head of the queue, we 251 // need to schedule an event to do the transmit. Otherwise there 252 // should already be an event scheduled for sending the head 253 // packet. 254 if (transmitList.empty()) { 255 bridge.schedule(sendEvent, when); --- 157 unchanged lines hidden --- | 247 DPRINTF(Bridge, "response, new dest %d\n", pkt->getDest()); 248 249 // If we're about to put this packet at the head of the queue, we 250 // need to schedule an event to do the transmit. Otherwise there 251 // should already be an event scheduled for sending the head 252 // packet. 253 if (transmitList.empty()) { 254 bridge.schedule(sendEvent, when); --- 157 unchanged lines hidden --- |