From 3a1adc81cea2448b6717c97c94547d017eb9fd74 Mon Sep 17 00:00:00 2001 From: ClF3 Date: Tue, 5 Nov 2024 10:15:29 +0800 Subject: [PATCH] part2 ver 0.7.1 --- Part2-FlushReload/attacker.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Part2-FlushReload/attacker.c b/Part2-FlushReload/attacker.c index e09aa2e..6d1620e 100644 --- a/Part2-FlushReload/attacker.c +++ b/Part2-FlushReload/attacker.c @@ -41,13 +41,13 @@ int main() { time = measure_one_block_access_time((ADDR_PTR)buf + offset * 128); if(time < CACHE_HIT_THRESHOLD) { // clflush((ADDR_PTR)buf + offset * 128); - for(int i = 0; i < WAIT_TIME; i++); - new_time = measure_one_block_access_time((ADDR_PTR)buf + offset * 128); - if(new_time < CACHE_HIT_THRESHOLD) { + // for(int i = 0; i < WAIT_TIME; i++); + // new_time = measure_one_block_access_time((ADDR_PTR)buf + offset * 128); + // if(new_time < CACHE_HIT_THRESHOLD) { flag = offset; index = i; break; - } + // } } } }