mem: Move bind() and unbind() into the Port class.
These are now pure virtual methods which more specialized port
subclasses will need to implement. The SlavePort class implements them
by ignoring them and then providing parallel functions for the
MasterPort to call. The MasterPort's methods do basically what they
did before, except now bind() uses dynamic cast to check if its peer
is of the appropriate type and also to convert it into that type before
connecting to it.
Reviewed-by: Daniel Carvalho <firstname.lastname@example.org>
Reviewed-by: Andreas Sandberg <email@example.com>
Maintainer: Andreas Sandberg <firstname.lastname@example.org>
6 files changed