57a58
> tagTableUBits(params->tagTableUBits),
70a72,76
> // Current method for periodically resetting the u counter bits only
> // works for 1 or 2 bits
> // Also make sure that it is not 0
> assert(tagTableUBits <= 2 && (tagTableUBits > 0));
>
579c585
< int8_t min = 1;
---
> uint8_t min = 1;
608d613
< gtable[i][bi->tableIndices[i]].u = 0; //?
646,651c651,653
< if (longest_match_pred != bi->altTaken) {
< if (longest_match_pred == taken) {
< if (gtable[bi->hitBank][bi->hitBankIndex].u < 1) {
< gtable[bi->hitBank][bi->hitBankIndex].u++;
< }
< }
---
> if (bi->tagePred != bi->altTaken) {
> unsignedCtrUpdate(gtable[bi->hitBank][bi->hitBankIndex].u,
> bi->tagePred == taken, tagTableUBits);