port.cc (9089:da918cb3462e) port.cc (9152:86c0e6ca5e7c)
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()
86{
87 _slavePort = NULL;
88}
89
90void
85MasterPort::bind(SlavePort& slave_port)
86{
87 // master port keeps track of the slave port
88 _slavePort = &slave_port;
89
90 // slave port also keeps track of master port
91 _slavePort->bind(*this);
92}

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

162{
163}
164
165SlavePort::~SlavePort()
166{
167}
168
169void
91MasterPort::bind(SlavePort& slave_port)
92{
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}

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

168{
169}
170
171SlavePort::~SlavePort()
172{
173}
174
175void
176SlavePort::unBind()
177{
178 _masterPort = NULL;
179}
180
181void
170SlavePort::bind(MasterPort& master_port)
171{
172 _masterPort = &master_port;
173}
174
175MasterPort&
176SlavePort::getMasterPort() const
177{

--- 52 unchanged lines hidden ---
182SlavePort::bind(MasterPort& master_port)
183{
184 _masterPort = &master_port;
185}
186
187MasterPort&
188SlavePort::getMasterPort() const
189{

--- 52 unchanged lines hidden ---