From 5003ed5f7ae08ca8a0233a9862d17372a450d1cb Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Mon, 9 Mar 2015 09:39:08 -0500 Subject: [PATCH] cpu: o3: Remove unused code in iew, add assert instead. --- src/cpu/o3/iew_impl.hh | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/cpu/o3/iew_impl.hh b/src/cpu/o3/iew_impl.hh index bf44fb9f2..4741df634 100644 --- a/src/cpu/o3/iew_impl.hh +++ b/src/cpu/o3/iew_impl.hh @@ -1094,21 +1094,12 @@ DefaultIEW::dispatchInsts(ThreadID tid) iewExecutedNop[tid]++; - add_to_iq = false; - } else if (inst->isExecuted()) { - assert(0 && "Instruction shouldn't be executed.\n"); - DPRINTF(IEW, "Issue: Executed branch encountered, " - "skipping.\n"); - - inst->setIssued(); - inst->setCanCommit(); - - instQueue.recordProducer(inst); - add_to_iq = false; } else { + assert(!inst->isExecuted()); add_to_iq = true; } + if (inst->isNonSpeculative()) { DPRINTF(IEW, "[tid:%i]: Issue: Nonspeculative instruction " "encountered, skipping.\n", tid); -- 2.30.2