diff options
author | David Guillen <david.guillen@arm.com> | 2015-05-05 03:22:21 -0400 |
---|---|---|
committer | David Guillen <david.guillen@arm.com> | 2015-05-05 03:22:21 -0400 |
commit | 5287945a8bb98476a9326c5d9c51491cdc7212f2 (patch) | |
tree | c2263df9baa298e151c2fc68c22b9e3439f07edf /src/mem/cache/cache.cc | |
parent | d0d933facc9085727c12f53de76a2cb879ded4c8 (diff) | |
download | gem5-5287945a8bb98476a9326c5d9c51491cdc7212f2.tar.xz |
mem: Remove templates in cache model
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.
Diffstat (limited to 'src/mem/cache/cache.cc')
-rw-r--r-- | src/mem/cache/cache.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mem/cache/cache.cc b/src/mem/cache/cache.cc index a5fa0e60d..2bf5a260c 100644 --- a/src/mem/cache/cache.cc +++ b/src/mem/cache/cache.cc @@ -41,11 +41,3 @@ #include "mem/cache/tags/random_repl.hh" #include "mem/cache/cache_impl.hh" -// Template Instantiations -#ifndef DOXYGEN_SHOULD_SKIP_THIS - -template class Cache<FALRU>; -template class Cache<LRU>; -template class Cache<RandomRepl>; - -#endif //DOXYGEN_SHOULD_SKIP_THIS |