diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2015-03-09 09:39:08 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2015-03-09 09:39:08 -0500 |
commit | 5003ed5f7ae08ca8a0233a9862d17372a450d1cb (patch) | |
tree | 4196140a8c05ae684997c57ba7104b58fc353df2 /src/cpu/o3 | |
parent | 4e1d10a3cf3f5ba78b4a3bc4bd96ec60916809b3 (diff) | |
download | gem5-5003ed5f7ae08ca8a0233a9862d17372a450d1cb.tar.xz |
cpu: o3: Remove unused code in iew, add assert instead.
Diffstat (limited to 'src/cpu/o3')
-rw-r--r-- | src/cpu/o3/iew_impl.hh | 13 |
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); |