diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-11-28 14:39:19 -0800 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-11-28 14:39:19 -0800 |
commit | 8a020d40d3e7c9ecd3a41cfa5ab720080f5a9bbf (patch) | |
tree | 729567b736b1bcb116d0dfb5ba7736dc4a26bcbd /src/mem/bridge.cc | |
parent | ab598eadbfeefceb6501d4cca13147b660642d9e (diff) | |
download | gem5-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.cc | 5 |
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; } |