Somebody please tell me how do i implement LRU insertion policy. Here is what i did.I lru.cc i commented some of the lines. LRU::accessBlock(Addr addr, bool is_secure, Cycles &lat, int master_id) { BlkType *blk = BaseSetAssoc::accessBlock(addr, is_secure, lat, master_id);
// if (blk != NULL) { // move this block to head of the MRU list // sets[blk->set].moveToHead(blk); //DPRINTF(CacheRepl, "set %x: moving blk %x (%s) to MRU\n", // blk->set, regenerateBlkAddr(blk->tag, blk->set), // is_secure ? "s" : "ns"); // } // return blk; } void LRU::insertBlock(PacketPtr pkt, BlkType *blk) { BaseSetAssoc::insertBlock(pkt, blk); int set = extractSet(pkt->getAddr()); // sets[set].moveToHead(blk); } i.e I commented the move to head instructions. But still i get the miss rate same as that of lru. Please suggest me how do i do that.
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users