By default they don't exist, but they should be fairly simple to add.

You just have to add your own "tag" class in src/mem/cache/tags.   So, I'd
just copy the existing LRU files, rename them something different, then
edit them to implement them to be what you what (doing search/replace
within the new files to reflect the name change).  Then edit the Tags.py
file to reflect the new tag class.

After that, you should just be able to replace the "LRU" cache policy with
yours when the system is constructed.


On Sun, Nov 17, 2013 at 7:15 PM, Peng Wei <peng.wei....@gmx.com> wrote:

> Hello,
>
> I wanna configure the cache replacement policy for my ARM Detailed core,
> but I found their was no parameter for it. I don't wanna use ruby, just the
> simple cache version. The default algorithm for gem5 caches is LRU, but I
> hope to use Round-Robin or Random ones. Can anybody tell me how to do it,
> or their actually is not approach to configure cache replacement policy?
> Thanks very much.
>
> Best regards!
>
> _______________________________________________
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to