diff --git a/src/cpu/pred/bpred_unit.cc b/src/cpu/pred/bpred_unit.cc index 3d9e3ea5ab..4b93e30b39 100644 --- a/src/cpu/pred/bpred_unit.cc +++ b/src/cpu/pred/bpred_unit.cc @@ -263,6 +263,7 @@ BPredUnit::predict(const StaticInstPtr &inst, const InstSeqNum &seqNum, DPRINTF(Branch, "[tid:%i] [sn:%llu] BTB doesn't have a " "valid entry\n",tid,seqNum); pred_taken = false; + predict_record.predTaken = pred_taken; // The Direction of the branch predictor is altered // because the BTB did not have an entry // The predictor needs to be updated accordingly @@ -293,6 +294,7 @@ BPredUnit::predict(const StaticInstPtr &inst, const InstSeqNum &seqNum, } else { ++indirectMisses; pred_taken = false; + predict_record.predTaken = pred_taken; DPRINTF(Branch, "[tid:%i] [sn:%llu] " "Instruction %s no indirect "