1/*
2 * Copyright (c) 2002-2005 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;

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

88 }
89
90 bool isDefaultPort() const { return true; }
91};
92
93DefaultPeerPort defaultPeerPort;
94
95Port::Port(const std::string &_name, MemObject *_owner)
96 : EventManager(_owner), portName(_name), peer(&defaultPeerPort),
97 owner(_owner)
96 : portName(_name), peer(&defaultPeerPort), owner(_owner)
97{
98}
99
100Port::~Port()
101{
102}
103
104void
105Port::setPeer(Port *port)
106{
107 DPRINTF(Config, "setting peer to %s\n", port->name());
108
109 peer = port;
110}
111
112void
113Port::setOwner(MemObject *_owner)
114{
116 eventq = _owner->queue();
115 owner = _owner;
116}
117
118void
119Port::removeConn()
120{
121 if (peer->getOwner())
122 peer->getOwner()->deletePortRefs(peer);

--- 53 unchanged lines hidden ---