From eb899407c5f3bf5995f9f0bb9621e74d5ed98f29 Mon Sep 17 00:00:00 2001 From: Nathanael Premillieu Date: Thu, 6 Dec 2012 04:36:51 -0600 Subject: [PATCH] o3 cpu: remove some unused buggy functions in the lsq Committed by: Nilay Vaish --- src/cpu/o3/lsq.hh | 6 ------ src/cpu/o3/lsq_impl.hh | 18 ------------------ src/cpu/o3/lsq_unit.hh | 3 --- src/cpu/o3/lsq_unit_impl.hh | 18 ------------------ 4 files changed, 45 deletions(-) diff --git a/src/cpu/o3/lsq.hh b/src/cpu/o3/lsq.hh index 026033539..07881da9f 100644 --- a/src/cpu/o3/lsq.hh +++ b/src/cpu/o3/lsq.hh @@ -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. */ diff --git a/src/cpu/o3/lsq_impl.hh b/src/cpu/o3/lsq_impl.hh index 72ffdd58b..58a0526c1 100644 --- a/src/cpu/o3/lsq_impl.hh +++ b/src/cpu/o3/lsq_impl.hh @@ -399,24 +399,6 @@ LSQ::numStores() return total; } -template -int -LSQ::numLoadsReady() -{ - unsigned total = 0; - - list::iterator threads = activeThreads->begin(); - list::iterator end = activeThreads->end(); - - while (threads != end) { - ThreadID tid = *threads++; - - total += thread[tid].numLoadsReady(); - } - - return total; -} - template unsigned LSQ::numFreeEntries() diff --git a/src/cpu/o3/lsq_unit.hh b/src/cpu/o3/lsq_unit.hh index 8eb33c297..c0fc52caf 100644 --- a/src/cpu/o3/lsq_unit.hh +++ b/src/cpu/o3/lsq_unit.hh @@ -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; } diff --git a/src/cpu/o3/lsq_unit_impl.hh b/src/cpu/o3/lsq_unit_impl.hh index 7c98b99fb..8e12e990b 100644 --- a/src/cpu/o3/lsq_unit_impl.hh +++ b/src/cpu/o3/lsq_unit_impl.hh @@ -419,24 +419,6 @@ LSQUnit::numFreeEntries() } } -template -int -LSQUnit::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 void LSQUnit::checkSnoop(PacketPtr pkt) -- 2.30.2