summaryrefslogtreecommitdiff
path: root/src/mem/cache/builder.cc
diff options
context:
space:
mode:
authorAndreas Sandberg <Andreas.Sandberg@ARM.com>2013-01-07 13:05:39 -0500
committerAndreas Sandberg <Andreas.Sandberg@ARM.com>2013-01-07 13:05:39 -0500
commitd44f2f611ff51941a8702a33a0bc57d7f574e462 (patch)
tree85928f5bc95981755c11118a62c42fc28e1e6a0f /src/mem/cache/builder.cc
parent9364d35b8bce516459be09bb13891600921e9e6e (diff)
downloadgem5-d44f2f611ff51941a8702a33a0bc57d7f574e462.tar.xz
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.
Diffstat (limited to 'src/mem/cache/builder.cc')
-rw-r--r--src/mem/cache/builder.cc48
1 files changed, 5 insertions, 43 deletions
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;
}