From: Nilay Vaish Date: Mon, 9 Mar 2015 14:39:07 +0000 (-0500) Subject: cpu: o3: remove unused function annotateMemoryUnits() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f69a74fda63860c795e22c5dcd739a559cf95b5d;p=gem5.git cpu: o3: remove unused function annotateMemoryUnits() --- diff --git a/src/cpu/o3/fu_pool.cc b/src/cpu/o3/fu_pool.cc index 3edc2c35b..016b171bc 100644 --- a/src/cpu/o3/fu_pool.cc +++ b/src/cpu/o3/fu_pool.cc @@ -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) { diff --git a/src/cpu/o3/fu_pool.hh b/src/cpu/o3/fu_pool.hh index 79b2adf83..2e1b71dad 100644 --- a/src/cpu/o3/fu_pool.hh +++ b/src/cpu/o3/fu_pool.hh @@ -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.