Hi, I think you should check already implemented policies in src/mem/cache/replacement_policies and then design yours taking that as an template/example.
In order to get information which you mentioned, you might have to change/add arguments to accessBlock, findBlock, insertBlock, etc function in base_set_assoc. The information you are looking can be found in pkt class. For simplicity you can also use fa_lru as template and change things in it to implement replacement policies. On Wed, Oct 28, 2020 at 11:46 AM Chongzhi Zhao via gem5-users < gem5-users@gem5.org> wrote: > Hi, > I'm trying to evaluate a cache replacement policy with classic memory in > SE mode. A few questions: > > 1. The policy requires PC, address, and access type (demand > read/writeback/prefetch) to be made visible. However, I don't see these > exposed to the replacement policies. Where may I find them? > 2. The member functions are referenced in classes CacheMemory, > SectorTags, and BaseSetAssoc. Which one of them would be relevant to > classic memory? > > Cheers, > > *Chongzhi Zhao* > _______________________________________________ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-le...@gem5.org > %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s -- Best Regards, Abhishek
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s