o3 cpu: remove some unused buggy functions in the lsq

Committed by: Nilay Vaish <nilay@cs.wisc.edu>
This commit is contained in:
Nathanael Premillieu 2012-12-06 04:36:51 -06:00
parent 13f6d29a76
commit eb899407c5
4 changed files with 0 additions and 45 deletions

View file

@ -198,12 +198,6 @@ class LSQ {
int numStores(ThreadID tid)
{ return thread[tid].numStores(); }
/** Returns the total number of loads that are ready. */
int numLoadsReady();
/** Returns the number of loads that are ready for a single thread. */
int numLoadsReady(ThreadID tid)
{ return thread[tid].numLoadsReady(); }
/** Returns the number of free entries. */
unsigned numFreeEntries();
/** Returns the number of free entries for a specific thread. */

View file

@ -399,24 +399,6 @@ LSQ<Impl>::numStores()
return total;
}
template<class Impl>
int
LSQ<Impl>::numLoadsReady()
{
unsigned total = 0;
list<ThreadID>::iterator threads = activeThreads->begin();
list<ThreadID>::iterator end = activeThreads->end();
while (threads != end) {
ThreadID tid = *threads++;
total += thread[tid].numLoadsReady();
}
return total;
}
template<class Impl>
unsigned
LSQ<Impl>::numFreeEntries()

View file

@ -192,9 +192,6 @@ class LSQUnit {
/** Returns the number of free entries (min of free LQ and SQ entries). */
unsigned numFreeEntries();
/** Returns the number of loads ready to execute. */
int numLoadsReady();
/** Returns the number of loads in the LQ. */
int numLoads() { return loads; }

View file

@ -419,24 +419,6 @@ LSQUnit<Impl>::numFreeEntries()
}
}
template <class Impl>
int
LSQUnit<Impl>::numLoadsReady()
{
int load_idx = loadHead;
int retval = 0;
while (load_idx != loadTail) {
assert(loadQueue[load_idx]);
if (loadQueue[load_idx]->readyToIssue()) {
++retval;
}
}
return retval;
}
template <class Impl>
void
LSQUnit<Impl>::checkSnoop(PacketPtr pkt)