From: Gabe Black Date: Tue, 6 Nov 2007 20:51:08 +0000 (-0800) Subject: O3: Remove unneeded variable. X-Git-Tag: m5_2.0_beta5~101 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=19292d3f06c5cfd33d6b5d8ba4a9eeadd0d11d47;p=gem5.git O3: Remove unneeded variable. --HG-- extra : convert_revision : 4624ccd3f08818f4632881d6aca6d1cc343bbdcf --- diff --git a/src/cpu/o3/iew.hh b/src/cpu/o3/iew.hh index eef5a15d2..457e2a024 100644 --- a/src/cpu/o3/iew.hh +++ b/src/cpu/o3/iew.hh @@ -402,13 +402,6 @@ class DefaultIEW /** Records if there is a fetch redirect on this cycle for each thread. */ bool fetchRedirect[Impl::MaxThreads]; - /** Used to track if all instructions have been dispatched this cycle. - * If they have not, then blocking must have occurred, and the instructions - * would already be added to the skid buffer. - * @todo: Fix this hack. - */ - bool dispatchedAllInsts; - /** Records if the queues have been changed (inserted or issued insts), * so that IEW knows to broadcast the updated amount of free entries. */ diff --git a/src/cpu/o3/iew_impl.hh b/src/cpu/o3/iew_impl.hh index 399c44909..84d10e966 100644 --- a/src/cpu/o3/iew_impl.hh +++ b/src/cpu/o3/iew_impl.hh @@ -929,7 +929,7 @@ DefaultIEW::dispatch(unsigned tid) ++iewUnblockCycles; - if (validInstsFromRename() && dispatchedAllInsts) { + if (validInstsFromRename()) { // Add the current inputs to the skid buffer so they can be // reprocessed when this stage unblocks. skidInsert(tid); @@ -943,8 +943,6 @@ template void DefaultIEW::dispatchInsts(unsigned tid) { - dispatchedAllInsts = true; - // Obtain instructions from skid buffer if unblocking, or queue from rename // otherwise. std::queue &insts_to_dispatch = @@ -1011,8 +1009,6 @@ DefaultIEW::dispatchInsts(unsigned tid) // get full in the IQ. toRename->iewUnblock[tid] = false; - dispatchedAllInsts = false; - ++iewIQFullEvents; break; } else if (ldstQueue.isFull(tid)) { @@ -1026,8 +1022,6 @@ DefaultIEW::dispatchInsts(unsigned tid) // get full in the IQ. toRename->iewUnblock[tid] = false; - dispatchedAllInsts = false; - ++iewLSQFullEvents; break; }