part2 ver 0.7.1
This commit is contained in:
parent
b27c59b282
commit
3a1adc81ce
|
@ -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;
|
||||
}
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue