Make sure the value of PC is actually updated now that the instruction target isn't set explicitly.
--HG-- extra : convert_revision : 4c00a219ac1d82abea78e4e8d70f529a435fdfe2
This commit is contained in:
@@ -149,7 +149,7 @@ BPredUnit<Impl>::predict(DynInstPtr &inst, Addr &PC, unsigned tid)
|
||||
using TheISA::MachInst;
|
||||
|
||||
bool pred_taken = false;
|
||||
Addr target;
|
||||
Addr target = PC;
|
||||
|
||||
++lookups;
|
||||
|
||||
@@ -233,6 +233,8 @@ BPredUnit<Impl>::predict(DynInstPtr &inst, Addr &PC, unsigned tid)
|
||||
}
|
||||
}
|
||||
|
||||
PC = target;
|
||||
|
||||
predHist[tid].push_front(predict_record);
|
||||
|
||||
DPRINTF(Fetch, "[tid:%i]: predHist.size(): %i\n", tid, predHist[tid].size());
|
||||
|
||||
Reference in New Issue
Block a user