2c2
< * Copyright (c) 2011 ARM Limited
---
> * Copyright (c) 2011-2012 ARM Limited
96,97d95
< switchedOut = false;
<
442c440
< InstructionQueue<Impl>::switchOut()
---
> InstructionQueue<Impl>::drainSanityCheck() const
444,457c442,445
< /*
< if (!instList[0].empty() || (numEntries != freeEntries) ||
< !readyInsts[0].empty() || !nonSpecInsts.empty() || !listOrder.empty()) {
< dumpInsts();
< // assert(0);
< }
< */
< resetState();
< dependGraph.reset();
< instsToExecute.clear();
< switchedOut = true;
< for (ThreadID tid = 0; tid < numThreads; ++tid) {
< memDepUnit[tid].switchOut();
< }
---
> assert(dependGraph.empty());
> assert(instsToExecute.empty());
> for (ThreadID tid = 0; tid < numThreads; ++tid)
> memDepUnit[tid].drainSanityCheck();
464c452
< switchedOut = false;
---
> resetState();
718a707
> assert(!cpu->switchedOut());
721,726d709
< if (isSwitchedOut()) {
< DPRINTF(IQ, "FU completion not processed, IQ is switched out [sn:%lli]\n",
< inst->seqNum);
< return;
< }
<