summaryrefslogtreecommitdiff
path: root/src/mem/bridge.cc
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2012-01-17 12:55:09 -0600
committerAndreas Hansson <andreas.hansson@arm.com>2012-01-17 12:55:09 -0600
commit6315e5bbb5efd6972cf1c7cd8007563646d88d33 (patch)
tree9ad4a54f924207c88c8699ff31e8f9c924838bab /src/mem/bridge.cc
parentde34e49d15b95cc8be51dbed2e98c469e7486959 (diff)
downloadgem5-6315e5bbb5efd6972cf1c7cd8007563646d88d33.tar.xz
MEM: Remove the notion of the default port
This patch removes the default port and instead relies on the peer being set to NULL initially. The binding check (i.e. is a port connected or not) will eventually be moved to the init function of the modules.
Diffstat (limited to 'src/mem/bridge.cc')
-rw-r--r--src/mem/bridge.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/bridge.cc b/src/mem/bridge.cc
index 65ce3012e..6001870ff 100644
--- a/src/mem/bridge.cc
+++ b/src/mem/bridge.cc
@@ -79,7 +79,7 @@ Bridge::getPort(const std::string &if_name, int idx)
else
return NULL;
- if (port->getPeer() != NULL && !port->getPeer()->isDefaultPort())
+ if (port->getPeer() != NULL)
panic("bridge side %s already connected to %s.",
if_name, port->getPeer()->name());
return port;