diff options
Diffstat (limited to 'src/mem/cache/base.cc')
-rw-r--r-- | src/mem/cache/base.cc | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/mem/cache/base.cc b/src/mem/cache/base.cc index b474aeedc..a2443eaad 100644 --- a/src/mem/cache/base.cc +++ b/src/mem/cache/base.cc @@ -783,21 +783,7 @@ BaseCache::drain(DrainManager *dm) BaseCache * BaseCacheParams::create() { - unsigned numSets = size / (assoc * system->cacheLineSize()); - assert(tags); - if (dynamic_cast<FALRU*>(tags)) { - if (numSets != 1) - fatal("Got FALRU tags with more than one set\n"); - return new Cache<FALRU>(this); - } else if (dynamic_cast<LRU*>(tags)) { - if (numSets == 1) - warn("Consider using FALRU tags for a fully associative cache\n"); - return new Cache<LRU>(this); - } else if (dynamic_cast<RandomRepl*>(tags)) { - return new Cache<RandomRepl>(this); - } else { - fatal("No suitable tags selected\n"); - } + return new Cache(this); } |