Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-05-05 | mem: Remove templates in cache model | David Guillen | |
This patch changes the cache implementation to rely on virtual methods rather than using the replacement policy as a template argument. There is no impact on the simulation performance, and overall the changes make it easier to modify (and subclass) the cache and/or replacement policy. | |||
2014-07-28 | mem: refactor LRU cache tags and add random replacement tags | Anthony Gutierrez | |
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 BaseSetAssoc class. any set associative tag class must implement the functionality related to the actual replacement policy in the following methods: accessBlock() findVictim() insertBlock() invalidate() |