diff options
Diffstat (limited to 'src/cpu/o3/decode_impl.hh')
-rw-r--r-- | src/cpu/o3/decode_impl.hh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cpu/o3/decode_impl.hh b/src/cpu/o3/decode_impl.hh index 15ec76f5a..51c1b9de1 100644 --- a/src/cpu/o3/decode_impl.hh +++ b/src/cpu/o3/decode_impl.hh @@ -288,7 +288,7 @@ DefaultDecode<Impl>::unblock(ThreadID tid) template<class Impl> void -DefaultDecode<Impl>::squash(DynInstPtr &inst, ThreadID tid) +DefaultDecode<Impl>::squash(const DynInstPtr &inst, ThreadID tid) { DPRINTF(Decode, "[tid:%i]: [sn:%i] Squashing due to incorrect branch " "prediction detected at decode.\n", tid, inst->seqNum); @@ -650,8 +650,6 @@ DefaultDecode<Impl>::decodeInsts(ThreadID tid) ++decodeRunCycles; } - DynInstPtr inst; - std::queue<DynInstPtr> &insts_to_decode = decodeStatus[tid] == Unblocking ? skidBuffer[tid] : insts[tid]; @@ -661,7 +659,7 @@ DefaultDecode<Impl>::decodeInsts(ThreadID tid) while (insts_available > 0 && toRenameIndex < decodeWidth) { assert(!insts_to_decode.empty()); - inst = insts_to_decode.front(); + DynInstPtr inst = std::move(insts_to_decode.front()); insts_to_decode.pop(); |