diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2015-01-22 05:01:27 -0500 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2015-01-22 05:01:27 -0500 |
commit | 0c2ffd2daa5a38b69c2061b304d8998a29343cca (patch) | |
tree | 51ce59dfc8a6e41910c48d3298ab480433376d27 /src/mem/bridge.cc | |
parent | 00536b0efc6d437fdf0cc0374b818b27ba32d217 (diff) | |
download | gem5-0c2ffd2daa5a38b69c2061b304d8998a29343cca.tar.xz |
mem: Remove unused RequestState in the bridge
This patch removes the bridge sender state as the Crossbar now takes
care of remembering its own routing decisions.
Diffstat (limited to 'src/mem/bridge.cc')
-rw-r--r-- | src/mem/bridge.cc | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/mem/bridge.cc b/src/mem/bridge.cc index b26da57e3..a21d123a1 100644 --- a/src/mem/bridge.cc +++ b/src/mem/bridge.cc @@ -207,15 +207,6 @@ Bridge::BridgeSlavePort::retryStalledReq() void Bridge::BridgeMasterPort::schedTimingReq(PacketPtr pkt, Tick when) { - // If we expect to see a response, we need to restore the source - // and destination field that is potentially changed by a second - // crossbar - if (!pkt->memInhibitAsserted() && pkt->needsResponse()) { - // Update the sender state so we can deal with the response - // appropriately - pkt->pushSenderState(new RequestState(pkt->getSrc())); - } - // If we're about to put this packet at the head of the queue, we // need to schedule an event to do the transmit. Otherwise there // should already be an event scheduled for sending the head @@ -233,19 +224,6 @@ Bridge::BridgeMasterPort::schedTimingReq(PacketPtr pkt, Tick when) void Bridge::BridgeSlavePort::schedTimingResp(PacketPtr pkt, Tick when) { - // This is a response for a request we forwarded earlier. The - // corresponding request state should be stored in the packet's - // senderState field. - RequestState *req_state = - dynamic_cast<RequestState*>(pkt->popSenderState()); - assert(req_state != NULL); - pkt->setDest(req_state->origSrc); - delete req_state; - - // the bridge sets the destination irrespective of it is valid or - // not, as it is checked in the crossbar - DPRINTF(Bridge, "response, new dest %d\n", pkt->getDest()); - // If we're about to put this packet at the head of the queue, we // need to schedule an event to do the transmit. Otherwise there // should already be an event scheduled for sending the head |