Try to check the following
src/mem/cache/base.cc (at the bottom)
src/mem/cache/tags/Tags.py
src/mem/cache/tags/BaseCache.py
and use 'configs/common/Caches.py'
for example,
class L1Cache(BaseCache):
...
tags = LRU()
2013-09-23(?) ?? 7:15, Roberto Rodríguez-Rodríguez ? ?:
Hello everyone,
I am working on cache replacement policies using the classic memory
model, I was using a gem5 version from April but I have a problem
because one Parsec benchmark (canneal) finish incorrectly with LRU
based policies.
I tested an updated version of gem5 (the version from today) and the
benchmark works perfectly, I tried to implement all my policies into
the new version of the simulator but I see that the way the cache
replacement policies were definied have changed.
There is not builder.cc, I the old versions I added a new variable in
src/mem/cache/BaseCache.py (replPolicy = Param.String("LRU", "")) and
I used that variable in src/mem/cache/builder.cc. Could somebody tell
me how can I add a new cache replacement policy in the new simulator
version?
Thanks in advance
Roberto
_______________________________________________
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