----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://reviews.gem5.org/r/2167/ -----------------------------------------------------------
(Updated June 24, 2014, 11:21 p.m.) Review request for Default. Summary (updated) ----------------- mem: re-factor LRU code and add random replacement cache tags Repository: gem5 Description (updated) ------- Changeset 10244:7f45ea64d8e6 --------------------------- mem: re-factor LRU code and add random replacement cache tags this patch implements a new tags class that uses a random replacement policy. these tags prefer to evict invalid blocks first, if none are available a replacement candidate is chosen at random. this patch factors out the common code in the LRU class and creates a new abstract class: the BaseLRU class. any LRU tag or derivative of LRU must implement the methods related to the actual replacement policy. these are the following methods, which are pure virtual methods in BaseLRU: accessBlock() findVictim() insertBlock() invalidate() Diffs (updated) ----- src/mem/cache/base.cc 21d1d03c782e96bad104aa9a5e2039b254f12841 src/mem/cache/cache.cc 21d1d03c782e96bad104aa9a5e2039b254f12841 src/mem/cache/tags/SConscript 21d1d03c782e96bad104aa9a5e2039b254f12841 src/mem/cache/tags/Tags.py 21d1d03c782e96bad104aa9a5e2039b254f12841 src/mem/cache/tags/base_lru.hh PRE-CREATION src/mem/cache/tags/base_lru.cc PRE-CREATION src/mem/cache/tags/lru.hh 21d1d03c782e96bad104aa9a5e2039b254f12841 src/mem/cache/tags/lru.cc 21d1d03c782e96bad104aa9a5e2039b254f12841 src/mem/cache/tags/pseudo_lru.hh PRE-CREATION src/mem/cache/tags/pseudo_lru.cc PRE-CREATION Diff: http://reviews.gem5.org/r/2167/diff/ Testing ------- Thanks, Anthony Gutierrez _______________________________________________ gem5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/gem5-dev
