Skip to content

Commit ccd9465

Browse files
committed
fix an issue in rebase
1 parent 6312ee7 commit ccd9465

1 file changed

Lines changed: 0 additions & 52 deletions

File tree

libCacheSim/bin/cachesim/cache_init.h

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ static inline cache_t *create_cache(const char *trace_path,
6565
{"s3fifo", S3FIFO_init},
6666
{"s3fifod", S3FIFOd_init},
6767
{"s3fifov0", S3FIFOv0_init},
68-
{"sfifo", SFIFO_init},
69-
{"sfifov0", SFIFOv0_init},
7068
{"size", Size_init},
7169
{"slru", SLRU_init},
7270
{"slruv0", SLRUv0_init},
@@ -133,56 +131,6 @@ static inline cache_t *create_cache(const char *trace_path,
133131
}
134132
cc_params.hashpower = MAX(cc_params.hashpower - 8, 16);
135133
cache = BeladySize_init(cc_params, eviction_params);
136-
<<<<<<< HEAD
137-
=======
138-
} else if (strcasecmp(eviction_algo, "fifo-reinsertion") == 0 ||
139-
strcasecmp(eviction_algo, "clock") == 0 ||
140-
strcasecmp(eviction_algo, "second-chance") == 0) {
141-
cache = Clock_init(cc_params, eviction_params);
142-
} else if (strcasecmp(eviction_algo, "clockpro") == 0) {
143-
cache = ClockPro_init(cc_params, eviction_params);
144-
} else if (strcasecmp(eviction_algo, "lirs") == 0) {
145-
cache = LIRS_init(cc_params, eviction_params);
146-
} else if (strcasecmp(eviction_algo, "fifomerge") == 0 ||
147-
strcasecmp(eviction_algo, "fifo-merge") == 0) {
148-
cache = FIFO_Merge_init(cc_params, eviction_params);
149-
// } else if (strcasecmp(eviction_algo, "fifo-reinsertion") == 0) {
150-
// cache = FIFO_Reinsertion_init(cc_params, eviction_params);
151-
} else if (strcasecmp(eviction_algo, "flashProb") == 0) {
152-
// used to measure application level write amp
153-
cache = flashProb_init(cc_params, eviction_params);
154-
} else if (strcasecmp(eviction_algo, "lru-prob") == 0) {
155-
cache = LRU_Prob_init(cc_params, eviction_params);
156-
} else if (strcasecmp(eviction_algo, "s3lru") == 0) {
157-
cache = S3LRU_init(cc_params, eviction_params);
158-
} else if (strcasecmp(eviction_algo, "s3fifo") == 0 ||
159-
strcasecmp(eviction_algo, "s3-fifo") == 0) {
160-
cache = S3FIFO_init(cc_params, eviction_params);
161-
} else if (strcasecmp(eviction_algo, "s3fifov0") == 0 ||
162-
strcasecmp(eviction_algo, "s3-fifov0") == 0) {
163-
cache = S3FIFOv0_init(cc_params, eviction_params);
164-
} else if (strcasecmp(eviction_algo, "s3fifod") == 0) {
165-
cache = S3FIFOd_init(cc_params, eviction_params);
166-
} else if (strcasecmp(eviction_algo, "qdlp") == 0) {
167-
cache = QDLP_init(cc_params, eviction_params);
168-
} else if (strcasecmp(eviction_algo, "CAR") == 0) {
169-
cache = CAR_init(cc_params, eviction_params);
170-
} else if (strcasecmp(eviction_algo, "sieve") == 0) {
171-
cache = Sieve_init(cc_params, eviction_params);
172-
#ifdef ENABLE_3L_CACHE
173-
} else if (strcasecmp(eviction_algo, "3LCache") == 0) {
174-
cache = ThreeLCache_init(cc_params, eviction_params);
175-
#endif
176-
#ifdef ENABLE_GLCACHE
177-
} else if (strcasecmp(eviction_algo, "GLCache") == 0 ||
178-
strcasecmp(eviction_algo, "gl-cache") == 0) {
179-
cache = GLCache_init(cc_params, eviction_params);
180-
#endif
181-
#ifdef ENABLE_LRB
182-
} else if (strcasecmp(eviction_algo, "lrb") == 0) {
183-
cache = LRB_init(cc_params, eviction_params);
184-
#endif
185-
>>>>>>> 4b826ae (many fixes)
186134
} else {
187135
ERROR("do not support algorithm %s\n", eviction_algo);
188136
abort();

0 commit comments

Comments
 (0)