diff options
-rw-r--r-- | src/python/m5/params.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/python/m5/params.py b/src/python/m5/params.py index 74bd40b7d..854c8e379 100644 --- a/src/python/m5/params.py +++ b/src/python/m5/params.py @@ -1883,12 +1883,9 @@ class PortRef(object): def ccConnect(self): from _m5.pyobject import connectPorts - if self.role == 'SLAVE': - # do nothing and let the master take care of it - return - if self.ccConnected: # already done this return + peer = self.peer if not self.peer: # nothing to connect to return @@ -1899,6 +1896,10 @@ class PortRef(object): "cannot connect '%s' and '%s' due to identical role '%s'" \ % (peer, self, self.role) + if self.role == 'SLAVE': + # do nothing and let the master take care of it + return + try: # self is always the master and peer the slave connectPorts(self.simobj.getCCObject(), self.name, self.index, |