summaryrefslogtreecommitdiff
path: root/src/mem
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem')
-rw-r--r--src/mem/bus.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/bus.cc b/src/mem/bus.cc
index 8546df565..41406e87a 100644
--- a/src/mem/bus.cc
+++ b/src/mem/bus.cc
@@ -259,7 +259,7 @@ BaseBus::Layer<PortClass>::releaseLayer()
// bus layer is now idle, so if someone is waiting we can retry
if (!waitingForLayer.empty()) {
retryWaiting();
- } else if (drainManager) {
+ } else if (waitingForPeer == NULL && drainManager) {
DPRINTF(Drain, "Bus done draining, signaling drain manager\n");
//If we weren't able to drain before, do it now.
drainManager->signalDrainDone();