cpu: o3: Remove unused code in iew, add assert instead.
authorNilay Vaish <nilay@cs.wisc.edu>
Mon, 9 Mar 2015 14:39:08 +0000 (09:39 -0500)
committerNilay Vaish <nilay@cs.wisc.edu>
Mon, 9 Mar 2015 14:39:08 +0000 (09:39 -0500)
src/cpu/o3/iew_impl.hh

index bf44fb9f2ad04e62db260a476437bf3f59f747b4..4741df634eba7e94fab664df6a52c61da75f9b46 100644 (file)
@@ -1094,21 +1094,12 @@ DefaultIEW<Impl>::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);