From d5dbd91f3d98b4c2df88aa6ee88f19269cd67bc4 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sun, 24 Oct 2010 00:43:32 -0700 Subject: O3: Get rid of a bunch of commented out lines. --- src/cpu/o3/rob_impl.hh | 172 ------------------------------------------------- 1 file changed, 172 deletions(-) (limited to 'src/cpu/o3') diff --git a/src/cpu/o3/rob_impl.hh b/src/cpu/o3/rob_impl.hh index 8acaa8ecb..cf0080b48 100644 --- a/src/cpu/o3/rob_impl.hh +++ b/src/cpu/o3/rob_impl.hh @@ -202,7 +202,6 @@ template void ROB::insertInst(DynInstPtr &inst) { - //assert(numInstsInROB == countInsts()); assert(inst); DPRINTF(ROB, "Adding inst PC %#x to the ROB.\n", inst->readPC()); @@ -234,31 +233,10 @@ ROB::insertInst(DynInstPtr &inst) DPRINTF(ROB, "[tid:%i] Now has %d instructions.\n", tid, threadEntries[tid]); } -// Whatever calls this function needs to ensure that it properly frees up -// registers prior to this function. -/* -template -void -ROB::retireHead() -{ - //assert(numInstsInROB == countInsts()); - assert(numInstsInROB > 0); - - ThreadID tid = (*head)->threadNumber; - - retireHead(tid); - - if (numInstsInROB == 0) { - tail = instList[tid].end(); - } -} -*/ - template void ROB::retireHead(ThreadID tid) { - //assert(numInstsInROB == countInsts()); assert(numInstsInROB > 0); // Get the head ROB instruction. @@ -288,18 +266,7 @@ ROB::retireHead(ThreadID tid) // iterator will become invalidated. cpu->removeFrontInst(head_inst); } -/* -template -bool -ROB::isHeadReady() -{ - if (numInstsInROB != 0) { - return (*head)->readyToCommit(); - } - return false; -} -*/ template bool ROB::isHeadReady(ThreadID tid) @@ -334,8 +301,6 @@ template unsigned ROB::numFreeEntries() { - //assert(numInstsInROB == countInsts()); - return numEntries - numInstsInROB; } @@ -532,19 +497,6 @@ ROB::squash(InstSeqNum squash_num, ThreadID tid) doSquash(tid); } } -/* -template -typename Impl::DynInstPtr -ROB::readHeadInst() -{ - if (numInstsInROB != 0) { - assert((*head)->isInROB()==true); - return *head; - } else { - return dummyInst; - } -} -*/ template typename Impl::DynInstPtr @@ -561,137 +513,13 @@ ROB::readHeadInst(ThreadID tid) } } -/* -template -uint64_t -ROB::readHeadPC() -{ - //assert(numInstsInROB == countInsts()); - - DynInstPtr head_inst = *head; - - return head_inst->readPC(); -} - -template -uint64_t -ROB::readHeadPC(ThreadID tid) -{ - //assert(numInstsInROB == countInsts()); - InstIt head_thread = instList[tid].begin(); - - return (*head_thread)->readPC(); -} - - -template -uint64_t -ROB::readHeadNextPC() -{ - //assert(numInstsInROB == countInsts()); - - DynInstPtr head_inst = *head; - - return head_inst->readNextPC(); -} - -template -uint64_t -ROB::readHeadNextPC(ThreadID tid) -{ - //assert(numInstsInROB == countInsts()); - InstIt head_thread = instList[tid].begin(); - - return (*head_thread)->readNextPC(); -} - -template -InstSeqNum -ROB::readHeadSeqNum() -{ - //assert(numInstsInROB == countInsts()); - DynInstPtr head_inst = *head; - - return head_inst->seqNum; -} - -template -InstSeqNum -ROB::readHeadSeqNum(ThreadID tid) -{ - InstIt head_thread = instList[tid].begin(); - - return ((*head_thread)->seqNum); -} - -template -typename Impl::DynInstPtr -ROB::readTailInst() -{ - //assert(numInstsInROB == countInsts()); - //assert(tail != instList[0].end()); - - return (*tail); -} -*/ template typename Impl::DynInstPtr ROB::readTailInst(ThreadID tid) { - //assert(tail_thread[tid] != instList[tid].end()); - InstIt tail_thread = instList[tid].end(); tail_thread--; return *tail_thread; } -/* -template -uint64_t -ROB::readTailPC() -{ - //assert(numInstsInROB == countInsts()); - - //assert(tail != instList[0].end()); - - return (*tail)->readPC(); -} - -template -uint64_t -ROB::readTailPC(ThreadID tid) -{ - //assert(tail_thread[tid] != instList[tid].end()); - - InstIt tail_thread = instList[tid].end(); - tail_thread--; - - return (*tail_thread)->readPC(); -} - -template -InstSeqNum -ROB::readTailSeqNum() -{ - // Return the last sequence number that has not been squashed. Other - // stages can use it to squash any instructions younger than the current - // tail. - return (*tail)->seqNum; -} - -template -InstSeqNum -ROB::readTailSeqNum(ThreadID tid) -{ - // Return the last sequence number that has not been squashed. Other - // stages can use it to squash any instructions younger than the current - // tail. - // assert(tail_thread[tid] != instList[tid].end()); - - InstIt tail_thread = instList[tid].end(); - tail_thread--; - - return (*tail_thread)->seqNum; -} -*/ -- cgit v1.2.3