// if we've still got pending translations schedule more work
nextWalk(tc);
currState = NULL;
- completeDrain();
}
Fault
doL1Descriptor();
stateQueues[L1].pop_front();
- completeDrain();
// Check if fault was generated
if (currState->fault != NoFault) {
currState->transState->finish(currState->fault, currState->req,
stateQueues[L2].pop_front();
- completeDrain();
pending = false;
nextWalk(currState->tc);
{
if (pendingQueue.size())
schedule(doProcessEvent, clockEdge(Cycles(1)));
+ else
+ completeDrain();
}
bool
* Definition of MSHRQueue class functions.
*/
+#include "base/trace.hh"
#include "mem/cache/mshr_queue.hh"
+#include "debug/Drain.hh"
using namespace std;
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);
// if there is nothing left in any queue, signal a drain
if (writeQueue.empty() && readQueue.empty() &&
drainManager) {
+ DPRINTF(Drain, "DRAM controller done draining\n");
drainManager->signalDrainDone();
drainManager = NULL;
}
} else {
// check if we are drained
if (respQueue.empty () && drainManager) {
+ DPRINTF(Drain, "DRAM controller done draining\n");
drainManager->signalDrainDone();
drainManager = NULL;
}
#include "base/random.hh"
#include "mem/simple_mem.hh"
+#include "debug/Drain.hh"
using namespace std;
reschedule(dequeueEvent,
std::max(packetQueue.front().tick, curTick()), true);
} else if (drainManager) {
+ DPRINTF(Drain, "Drainng of SimpleMemory complete\n");
drainManager->signalDrainDone();
drainManager = NULL;
}
if (!packetQueue.empty()) {
count += 1;
drainManager = dm;
- }
+ DPRINTF(Drain, "SimpleMemory Queue has requests, waiting to drain\n");
+ }
if (count)
setDrainState(Drainable::Draining);