summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2006-12-16 07:39:44 -0500
committerGabe Black <gblack@eecs.umich.edu>2006-12-16 07:39:44 -0500
commitf410d5f4e0348b4499f313fb3870a48183772c20 (patch)
tree77422dad5a84bae6a43f47a5e84cacbddef71704
parent569e0e883bf1f2d068cc0591b59998d956a8669f (diff)
downloadgem5-f410d5f4e0348b4499f313fb3870a48183772c20.tar.xz
Don't have "predict" set the predicted target of the instruction. Do that explicitly when you use predict.
--HG-- extra : convert_revision : 8b613bb365b31ffaef1cea9fd789abe46219bdcf
-rw-r--r--src/cpu/o3/bpred_unit_impl.hh9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/cpu/o3/bpred_unit_impl.hh b/src/cpu/o3/bpred_unit_impl.hh
index 477c8e4cb..dbc603082 100644
--- a/src/cpu/o3/bpred_unit_impl.hh
+++ b/src/cpu/o3/bpred_unit_impl.hh
@@ -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());