From d44f2f611ff51941a8702a33a0bc57d7f574e462 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Mon, 7 Jan 2013 13:05:39 -0500 Subject: mem: Remove the IIC replacement policy The IIC replacement policy seems to be unused and has probably gathered too much bit rot to be useful. This patch removes the IIC and its associated cache parameters. --- src/mem/cache/builder.cc | 48 +++++------------------------------------------- 1 file changed, 5 insertions(+), 43 deletions(-) (limited to 'src/mem/cache/builder.cc') diff --git a/src/mem/cache/builder.cc b/src/mem/cache/builder.cc index 6f1f841f8..7de8fbf9d 100644 --- a/src/mem/cache/builder.cc +++ b/src/mem/cache/builder.cc @@ -51,10 +51,6 @@ #include "mem/cache/tags/fa_lru.hh" #endif -#if defined(USE_CACHE_IIC) -#include "mem/cache/tags/iic.hh" -#endif - using namespace std; @@ -87,50 +83,16 @@ using namespace std; #define BUILD_LRU_CACHE BUILD_CACHE_PANIC("lru cache") #endif -#if defined(USE_CACHE_IIC) -#define BUILD_IIC_CACHE do { \ - IIC *tags = new IIC(iic_params); \ - BUILD_CACHE(IIC, tags); \ - } while (0) -#else -#define BUILD_IIC_CACHE BUILD_CACHE_PANIC("iic") -#endif - -#define BUILD_CACHES do { \ - if (repl == NULL) { \ - if (numSets == 1) { \ - BUILD_FALRU_CACHE; \ - } else { \ - BUILD_LRU_CACHE; \ - } \ - } else { \ - BUILD_IIC_CACHE; \ - } \ - } while (0) - BaseCache * BaseCacheParams::create() { int numSets = size / (assoc * block_size); - if (subblock_size == 0) { - subblock_size = block_size; - } -#if defined(USE_CACHE_IIC) - // Build IIC params - IIC::Params iic_params; - iic_params.size = size; - iic_params.numSets = numSets; - iic_params.blkSize = block_size; - iic_params.assoc = assoc; - iic_params.hashDelay = hash_delay; - iic_params.hitLatency = hit_latency; - iic_params.rp = repl; - iic_params.subblockSize = subblock_size; -#else - const void *repl = NULL; -#endif + if (numSets == 1) { + BUILD_FALRU_CACHE; + } else { + BUILD_LRU_CACHE; + } - BUILD_CACHES; return NULL; } -- cgit v1.2.3