cpu: o3: remove unused function annotateMemoryUnits()
authorNilay Vaish <nilay@cs.wisc.edu>
Mon, 9 Mar 2015 14:39:07 +0000 (09:39 -0500)
committerNilay Vaish <nilay@cs.wisc.edu>
Mon, 9 Mar 2015 14:39:07 +0000 (09:39 -0500)
src/cpu/o3/fu_pool.cc
src/cpu/o3/fu_pool.hh

index 3edc2c35b1e252db645c8725621db1de147cb8b9..016b171bc613e491e101078c2bf9d05f33da9050 100644 (file)
@@ -157,22 +157,6 @@ FUPool::FUPool(const Params *p)
     }
 }
 
-void
-FUPool::annotateMemoryUnits(Cycles hit_latency)
-{
-    maxOpLatencies[MemReadOp] = hit_latency;
-
-    fuListIterator i = funcUnits.begin();
-    fuListIterator iend = funcUnits.end();
-    for (; i != iend; ++i) {
-        if ((*i)->provides(MemReadOp))
-            (*i)->opLatency(MemReadOp) = hit_latency;
-
-        if ((*i)->provides(MemWriteOp))
-            (*i)->opLatency(MemWriteOp) = hit_latency;
-    }
-}
-
 int
 FUPool::getUnit(OpClass capability)
 {
index 79b2adf835872c3db6075759d6ef9252901c5271..2e1b71dad1994ca32c2887029760d847c9e575a7 100644 (file)
@@ -133,11 +133,6 @@ class FUPool : public SimObject
     FUPool(const Params *p);
     ~FUPool();
 
-    /** Annotates units that provide memory operations. Included only because
-     *  old FU pool provided this function.
-     */
-    void annotateMemoryUnits(Cycles hit_latency);
-
     /**
      * Gets a FU providing the requested capability. Will mark the unit as busy,
      * but leaves the freeing of the unit up to the IEW stage.