Please help me in adding Bimodal Insertion policy in to gem5.I have changed
this code in LRU. Is this the way you do it.
Where do i declare BIP-epsilon? This one shows error  'BIP_epsilon' was not
declared in this scope'. Please help me.

void
BIP::insertBlock(PacketPtr pkt, BlkType *blk)
{
    BaseSetAssoc::insertBlock(pkt, blk);

    int set = extractSet(pkt->getAddr());
    INT32      BIP_epsilon=5;
    if(rand() % 100<BIP_epsilon)
    {
    sets[set].moveToHead(blk);
    }
    else
    {
    sets[set].moveToTail(blk);
    }
}
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to