summaryrefslogtreecommitdiff
path: root/src/mem/bridge.cc
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-11-28 14:39:19 -0800
committerGabe Black <gblack@eecs.umich.edu>2007-11-28 14:39:19 -0800
commit8a020d40d3e7c9ecd3a41cfa5ab720080f5a9bbf (patch)
tree729567b736b1bcb116d0dfb5ba7736dc4a26bcbd /src/mem/bridge.cc
parentab598eadbfeefceb6501d4cca13147b660642d9e (diff)
downloadgem5-8a020d40d3e7c9ecd3a41cfa5ab720080f5a9bbf.tar.xz
Make ports that aren't connected to anything fail more gracefully.
--HG-- extra : convert_revision : 3803b28fb2fdfd729f01f1a44df2ae02ef83a2fc
Diffstat (limited to 'src/mem/bridge.cc')
-rw-r--r--src/mem/bridge.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mem/bridge.cc b/src/mem/bridge.cc
index 3fa9e5bb9..aa059ad13 100644
--- a/src/mem/bridge.cc
+++ b/src/mem/bridge.cc
@@ -78,8 +78,9 @@ Bridge::getPort(const std::string &if_name, int idx)
else
return NULL;
- if (port->getPeer() != NULL)
- panic("bridge side %s already connected to.", if_name);
+ if (port->getPeer() != NULL && !port->getPeer()->isDefaultPort())
+ panic("bridge side %s already connected to %s.",
+ if_name, port->getPeer()->name());
return port;
}