.name(name() + ".executions")
.desc("Number of Instructions Executed.");
+
+ predictedIncorrect
+ .name(name() + ".mispredicted")
+ .desc("Number of Branches Incorrectly Predicted");
+
+ predictedCorrect
+ .name(name() + ".predicted")
+ .desc("Number of Branches Incorrectly Predicted");
+
+ mispredictPct
+ .name(name() + ".mispredictPct")
+ .desc("Percentage of Incorrect Branches Predicts")
+ .precision(6);
+ mispredictPct = (predictedIncorrect /
+ (predictedCorrect + predictedIncorrect)) * 100;
+
Resource::regStats();
}
/////////////////////////////////////////////////////////////////
Stats::Scalar predictedTakenIncorrect;
Stats::Scalar predictedNotTakenIncorrect;
-
+ Stats::Scalar predictedIncorrect;
+ Stats::Scalar predictedCorrect;
+ Stats::Formula mispredictPct;
Stats::Scalar executions;
Tick lastExecuteCycle;
};