230a231
> bi->provider = LOOP;
290a292,328
>
> void
> LTAGE::updateStats(bool taken, TageBranchInfo* bi)
> {
> TAGE::updateStats(taken, bi);
>
> LTageBranchInfo * ltage_bi = static_cast<LTageBranchInfo *>(bi);
>
> if (ltage_bi->provider == LOOP) {
> if (taken == ltage_bi->loopPred) {
> loopPredictorCorrect++;
> } else {
> loopPredictorWrong++;
> }
> }
> }
>
>
>
> void
> LTAGE::regStats()
> {
> TAGE::regStats();
>
> loopPredictorCorrect
> .name(name() + ".loopPredictorCorrect")
> .desc("Number of times the loop predictor is the provider and "
> "the prediction is correct");
>
> loopPredictorWrong
> .name(name() + ".loopPredictorWrong")
> .desc("Number of times the loop predictor is the provier and "
> "the prediction is wrong");
> }
>
>
>