port.cc (9152:86c0e6ca5e7c) port.cc (9178:6a0ff1770e6e)
1/*
2 * Copyright (c) 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

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

77 if(_slavePort == NULL)
78 panic("Cannot getSlavePort on master port %s that is not connected\n",
79 name());
80
81 return *_slavePort;
82}
83
84void
1/*
2 * Copyright (c) 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

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

77 if(_slavePort == NULL)
78 panic("Cannot getSlavePort on master port %s that is not connected\n",
79 name());
80
81 return *_slavePort;
82}
83
84void
85MasterPort::unBind()
85MasterPort::unbind()
86{
86{
87 if (_slavePort == NULL)
88 panic("Attempting to unbind master port %s that is not connected\n",
89 name());
90 _slavePort->unbind();
87 _slavePort = NULL;
88}
89
90void
91MasterPort::bind(SlavePort& slave_port)
92{
91 _slavePort = NULL;
92}
93
94void
95MasterPort::bind(SlavePort& slave_port)
96{
97 if (_slavePort != NULL)
98 panic("Attempting to bind master port %s that is already connected\n",
99 name());
100
93 // master port keeps track of the slave port
94 _slavePort = &slave_port;
95
96 // slave port also keeps track of master port
97 _slavePort->bind(*this);
98}
99
100bool

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

168{
169}
170
171SlavePort::~SlavePort()
172{
173}
174
175void
101 // master port keeps track of the slave port
102 _slavePort = &slave_port;
103
104 // slave port also keeps track of master port
105 _slavePort->bind(*this);
106}
107
108bool

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

176{
177}
178
179SlavePort::~SlavePort()
180{
181}
182
183void
176SlavePort::unBind()
184SlavePort::unbind()
177{
178 _masterPort = NULL;
179}
180
181void
182SlavePort::bind(MasterPort& master_port)
183{
184 _masterPort = &master_port;

--- 57 unchanged lines hidden ---
185{
186 _masterPort = NULL;
187}
188
189void
190SlavePort::bind(MasterPort& master_port)
191{
192 _masterPort = &master_port;

--- 57 unchanged lines hidden ---