summaryrefslogtreecommitdiff
path: root/src/mem/bridge.cc
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2008-06-15 21:34:32 -0700
committerNathan Binkert <nate@binkert.org>2008-06-15 21:34:32 -0700
commite3c267a3dbe628516777dd74662c786ef4eedceb (patch)
tree1896fcf08d73fb919ef361e678fddc044cb976a9 /src/mem/bridge.cc
parentb429b1759defba2f8da1f894f6a3500e3f2c78d2 (diff)
downloadgem5-e3c267a3dbe628516777dd74662c786ef4eedceb.tar.xz
port: Clean up default port setup and port switchover code.
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 3d3966491..c09cacc00 100644
--- a/src/mem/bridge.cc
+++ b/src/mem/bridge.cc
@@ -89,7 +89,7 @@ void
Bridge::init()
{
// Make sure that both sides are connected to.
- if (portA.getPeer() == NULL || portB.getPeer() == NULL)
+ if (!portA.isConnected() || !portB.isConnected())
fatal("Both ports of bus bridge are not connected to a bus.\n");
if (portA.peerBlockSize() != portB.peerBlockSize())