diff options
Diffstat (limited to 'src/mem/port.cc')
-rw-r--r-- | src/mem/port.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mem/port.cc b/src/mem/port.cc index 36ca6304a..3827994fb 100644 --- a/src/mem/port.cc +++ b/src/mem/port.cc @@ -82,6 +82,12 @@ MasterPort::getSlavePort() const } void +MasterPort::unBind() +{ + _slavePort = NULL; +} + +void MasterPort::bind(SlavePort& slave_port) { // master port keeps track of the slave port @@ -167,6 +173,12 @@ SlavePort::~SlavePort() } void +SlavePort::unBind() +{ + _masterPort = NULL; +} + +void SlavePort::bind(MasterPort& master_port) { _masterPort = &master_port; |