tport.cc (5693:4bf6f614871b) tport.cc (5740:983b71bfc1bd)
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * Authors: Ali Saidi
29 */
30
31#include "mem/tport.hh"
32
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * Authors: Ali Saidi
29 */
30
31#include "mem/tport.hh"
32
33using namespace std;
34
35SimpleTimingPort::SimpleTimingPort(string pname, MemObject *_owner)
36 : Port(pname, _owner), sendEvent(0), drainEvent(NULL),
37 waitingOnRetry(false)
38{
39 sendEvent = new EventWrapper<SimpleTimingPort,
40 &SimpleTimingPort::processSendEvent>(this);
41}
42
43SimpleTimingPort::~SimpleTimingPort()
44{
45 delete sendEvent;
46}
47
33bool
34SimpleTimingPort::checkFunctional(PacketPtr pkt)
35{
36 DeferredPacketIterator i = transmitList.begin();
37 DeferredPacketIterator end = transmitList.end();
38
39 for (; i != end; ++i) {
40 PacketPtr target = i->pkt;

--- 147 unchanged lines hidden ---
48bool
49SimpleTimingPort::checkFunctional(PacketPtr pkt)
50{
51 DeferredPacketIterator i = transmitList.begin();
52 DeferredPacketIterator end = transmitList.end();
53
54 for (; i != end; ++i) {
55 PacketPtr target = i->pkt;

--- 147 unchanged lines hidden ---