diff options
author | Nathan Binkert <nate@binkert.org> | 2008-06-15 21:34:32 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2008-06-15 21:34:32 -0700 |
commit | e3c267a3dbe628516777dd74662c786ef4eedceb (patch) | |
tree | 1896fcf08d73fb919ef361e678fddc044cb976a9 /src/mem/bridge.cc | |
parent | b429b1759defba2f8da1f894f6a3500e3f2c78d2 (diff) | |
download | gem5-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.cc | 2 |
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()) |