From 82397921a5e1ba4cd1e6b5a39f2b9407161d8818 Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Thu, 30 May 2013 12:53:57 -0400 Subject: [PATCH] mem: Check for waiting state in bus draining This patch fixes a bug in the bus where the bus transitions from busy to idle and still has a port that is waiting for a retry from a peer. --- src/mem/bus.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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::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(); -- 2.30.2