bridge.hh (9294:8fb03b13de02) bridge.hh (9542:683991c46ac8)
1/*
2 * Copyright (c) 2011-2012 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

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

79 * state and original source. It has enough information to also
80 * restore the response once it comes back to the bridge.
81 */
82 class RequestState : public Packet::SenderState
83 {
84
85 public:
86
1/*
2 * Copyright (c) 2011-2012 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

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

79 * state and original source. It has enough information to also
80 * restore the response once it comes back to the bridge.
81 */
82 class RequestState : public Packet::SenderState
83 {
84
85 public:
86
87 Packet::SenderState *origSenderState;
88 PortID origSrc;
89
87 PortID origSrc;
88
90 RequestState(PacketPtr _pkt)
91 : origSenderState(_pkt->senderState),
92 origSrc(_pkt->getSrc())
89 RequestState(PortID orig_src) : origSrc(orig_src)
93 { }
94
90 { }
91
95 void fixResponse(PacketPtr pkt)
96 {
97 assert(pkt->senderState == this);
98 pkt->setDest(origSrc);
99 pkt->senderState = origSenderState;
100 }
101 };
102
103 /**
104 * A deferred packet stores a packet along with its scheduled
105 * transmission time
106 */
107 class DeferredPacket
108 {

--- 245 unchanged lines hidden ---
92 };
93
94 /**
95 * A deferred packet stores a packet along with its scheduled
96 * transmission time
97 */
98 class DeferredPacket
99 {

--- 245 unchanged lines hidden ---