Don't have "predict" set the predicted target of the instruction. Do that explicitly when you use predict.

--HG--
extra : convert_revision : 8b613bb365b31ffaef1cea9fd789abe46219bdcf
This commit is contained in:
Gabe Black 2006-12-16 07:39:44 -05:00
parent 569e0e883b
commit f410d5f4e0

View file

@ -233,15 +233,6 @@ BPredUnit<Impl>::predict(DynInstPtr &inst, Addr &PC, unsigned tid)
}
}
if (pred_taken) {
// Set the PC and the instruction's predicted target.
PC = target;
inst->setPredTarg(target);
} else {
PC = PC + sizeof(MachInst);
inst->setPredTarg(PC);
}
predHist[tid].push_front(predict_record);
DPRINTF(Fetch, "[tid:%i]: predHist.size(): %i\n", tid, predHist[tid].size());