@@ -196,6 +196,13 @@ static const cache_test_data_t test_data_truth[] = {
196196 .miss_cnt_true = {90043 , 83978 , 81482 , 77727 , 72611 , 72059 , 67836 , 65739 },
197197 .miss_byte_true = {4068758016 , 3792818176 , 3639756288 , 3379609600 ,
198198 3165339648 , 3058814976 , 2862775296 , 2774183936 }},
199+ {.cache_name = "Clock2QPlus" ,
200+ .hashpower = 20 ,
201+ .req_cnt_true = 113872 ,
202+ .req_byte_true = 4368040448 ,
203+ .miss_cnt_true = {90600 , 81357 , 75287 , 72430 , 70057 , 65671 , 60864 , 55864 },
204+ .miss_byte_true = {4061047808 , 3577076736 , 3242227712 , 3061383680 ,
205+ 2898187264 , 2624986112 , 2422187008 , 2322797568 }},
199206#if defined(ENABLE_3L_CACHE ) && ENABLE_3L_CACHE == 1
200207 {.cache_name = "3LCache" ,
201208 .hashpower = 20 ,
@@ -374,9 +381,13 @@ static void test_SR_LRU(gconstpointer user_data) {
374381 test_cache_algorithm (user_data , & test_data_truth [24 ]);
375382}
376383
384+ static void test_Clock2QPlus (gconstpointer user_data ) {
385+ test_cache_algorithm (user_data , & test_data_truth [25 ]);
386+ }
387+
377388#if defined(ENABLE_3L_CACHE ) && ENABLE_3L_CACHE == 1
378389static void test_3LCache (gconstpointer user_data ) {
379- test_cache_algorithm (user_data , & test_data_truth [25 ]);
390+ test_cache_algorithm (user_data , & test_data_truth [26 ]);
380391}
381392#endif /* ENABLE_3L_CACHE */
382393
@@ -429,6 +440,8 @@ int main(int argc, char *argv[]) {
429440 g_test_add_data_func ("/libCacheSim/cacheAlgo_Sieve" , reader , test_Sieve );
430441 g_test_add_data_func ("/libCacheSim/cacheAlgo_SLRU" , reader , test_SLRU );
431442 g_test_add_data_func ("/libCacheSim/cacheAlgo_SR_LRU" , reader , test_SR_LRU );
443+ g_test_add_data_func ("/libCacheSim/cacheAlgo_Clock2QPlus" , reader ,
444+ test_Clock2QPlus );
432445
433446#if defined(ENABLE_3L_CACHE ) && ENABLE_3L_CACHE == 1
434447 g_test_add_data_func ("/libCacheSim/cacheAlgo_3LCache" , reader , test_3LCache );
0 commit comments