Hi,
If you look at findVictim(), you can see that a block is selected
(with set number) and no matter what is the refCount (I think this is
LRU counter), the block is selected as victim.

    BlkType *blk = sets[set].blks[assoc-1];
    if (blk->isValid()) {
        replacements[0]++;
        totalRefs += blk->refCount;
        ++sampledRefs;
        blk->refCount = 0;
        .....
        DPRINTF(CacheRepl, "set %x: selecting blk %x for replacement\n",
                set, regenerateBlkAddr(blk->tag, set));
    }
    return blk;

As far as I know, in LRU policy, after finding the set number, all
counters in the ways are compared to find the minimum one. That is
actually show the least referenced way.

Can someone clarify that?
--
// Naderan *Mahmood;
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to