changeset aa761458ddcb in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=aa761458ddcb
description:
o3 cpu: remove some unused buggy functions in the lsq
Committed by: Nilay Vaish <[email protected]>
diffstat:
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, 0 insertions(+), 45 deletions(-)
diffs (85 lines):
diff -r 94383c5124d2 -r aa761458ddcb src/cpu/o3/lsq.hh
--- a/src/cpu/o3/lsq.hh Mon Nov 19 11:21:09 2012 -0500
+++ b/src/cpu/o3/lsq.hh Thu Dec 06 04:36:51 2012 -0600
@@ -198,12 +198,6 @@
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 -r 94383c5124d2 -r aa761458ddcb src/cpu/o3/lsq_impl.hh
--- a/src/cpu/o3/lsq_impl.hh Mon Nov 19 11:21:09 2012 -0500
+++ b/src/cpu/o3/lsq_impl.hh Thu Dec 06 04:36:51 2012 -0600
@@ -400,24 +400,6 @@
}
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()
{
diff -r 94383c5124d2 -r aa761458ddcb src/cpu/o3/lsq_unit.hh
--- a/src/cpu/o3/lsq_unit.hh Mon Nov 19 11:21:09 2012 -0500
+++ b/src/cpu/o3/lsq_unit.hh Thu Dec 06 04:36:51 2012 -0600
@@ -192,9 +192,6 @@
/** 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 -r 94383c5124d2 -r aa761458ddcb src/cpu/o3/lsq_unit_impl.hh
--- a/src/cpu/o3/lsq_unit_impl.hh Mon Nov 19 11:21:09 2012 -0500
+++ b/src/cpu/o3/lsq_unit_impl.hh Thu Dec 06 04:36:51 2012 -0600
@@ -420,24 +420,6 @@
}
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)
{
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev