OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 1242 to Rev 1243
    Reverse comparison

Rev 1242 → Rev 1243

/trunk/or1ksim/bpb/branch_predict.c
105,7 → 105,7
/* Did we find our cached branch? */
if (way >= 0) { /* Yes, we did. */
mstats.bpb.hit++;
or1k_mstats.bpb.hit++;
for (i = 0; i < BPB_WAYS; i++)
if (bpb[entry].way[i].lru)
113,9 → 113,9
bpb[entry].way[way].lru = BPB_USTATES - 1;
if (bpb[entry].way[way].taken / (BPB_PSTATES / 2) == taken)
mstats.bpb.correct++;
or1k_mstats.bpb.correct++;
else
mstats.bpb.incorrect++;
or1k_mstats.bpb.incorrect++;
if (taken && (bpb[entry].way[way].taken < BPB_PSTATES - 1))
bpb[entry].way[way].taken++;
127,7 → 127,7
int minlru = BPB_USTATES - 1;
int minway = 0;
mstats.bpb.miss++;
or1k_mstats.bpb.miss++;
for (i = 0; i < BPB_WAYS; i++)
if (bpb[entry].way[i].lru < minlru)
206,7 → 206,7
/* Did we find our cached branch? */
if (way >= 0) { /* Yes, we did. */
mstats.btic.hit++;
or1k_mstats.btic.hit++;
for (i = 0; i < BTIC_WAYS; i++)
if (btic[entry].way[i].lru)
217,7 → 217,7
int minlru = BTIC_USTATES - 1;
int minway = 0;
mstats.btic.miss++;
or1k_mstats.btic.miss++;
for (i = 0; i < BTIC_WAYS; i++)
if (btic[entry].way[i].lru < minlru)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.