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; - } + // } } } }