port.cc (8232:b28d06a175be) port.cc (8708:7ccbdea0fa12)
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)
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)
98{
99}
100
101Port::~Port()
102{
103}
104
105void
106Port::setPeer(Port *port)
107{
108 DPRINTF(Config, "setting peer to %s\n", port->name());
109
110 peer = port;
111}
112
113void
114Port::setOwner(MemObject *_owner)
115{
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();
117 owner = _owner;
118}
119
120void
121Port::removeConn()
122{
123 if (peer->getOwner())
124 peer->getOwner()->deletePortRefs(peer);

--- 53 unchanged lines hidden ---
115 owner = _owner;
116}
117
118void
119Port::removeConn()
120{
121 if (peer->getOwner())
122 peer->getOwner()->deletePortRefs(peer);

--- 53 unchanged lines hidden ---