summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2015-03-09 09:39:08 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2015-03-09 09:39:08 -0500
commit5003ed5f7ae08ca8a0233a9862d17372a450d1cb (patch)
tree4196140a8c05ae684997c57ba7104b58fc353df2 /src/cpu
parent4e1d10a3cf3f5ba78b4a3bc4bd96ec60916809b3 (diff)
downloadgem5-5003ed5f7ae08ca8a0233a9862d17372a450d1cb.tar.xz
cpu: o3: Remove unused code in iew, add assert instead.
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/o3/iew_impl.hh13
1 files 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
@@ -1095,20 +1095,11 @@ 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);