From b31d9e93e2744b044d7ccc2d9113bc367038e14f Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Wed, 29 Oct 2014 23:18:26 -0500 Subject: arm, mem: Fix drain bug and provide drain prints for more components. --- src/mem/cache/mshr_queue.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mem/cache') diff --git a/src/mem/cache/mshr_queue.cc b/src/mem/cache/mshr_queue.cc index 7bfbb90f5..9146cddf7 100644 --- a/src/mem/cache/mshr_queue.cc +++ b/src/mem/cache/mshr_queue.cc @@ -45,7 +45,9 @@ * Definition of MSHRQueue class functions. */ +#include "base/trace.hh" #include "mem/cache/mshr_queue.hh" +#include "debug/Drain.hh" using namespace std; @@ -191,6 +193,7 @@ MSHRQueue::deallocateOne(MSHR *mshr) if (drainManager && allocated == 0) { // Notify the drain manager that we have completed draining if // there are no other outstanding requests in this MSHR queue. + DPRINTF(Drain, "MSHRQueue now empty, signalling drained\n"); drainManager->signalDrainDone(); drainManager = NULL; setDrainState(Drainable::Drained); -- cgit v1.2.3