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
"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,