On Wed, 4 Jan 2012, Mahmood Naderan wrote:

still looking for suggestion.
If totalRefs count the total accesses to blocks, then this update
method (updating at evition) is wrong

LRU::BlkType*
LRU::findVictim(Addr addr, PacketList &writebacks)
{
   BlkType *blk = sets[set].blks[assoc-1];
   if (blk->isValid()) {
       replacements[0]++;
       totalRefs += blk->refCount;
  ...
}



Why?

--
Nilay
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to