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:
parent
569e0e883b
commit
f410d5f4e0
1 changed files with 0 additions and 9 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue