Don't turn the cache off in test 0 when performing dummy runs.

This should fix the slow startup on multi-socket machines (issue #16).
This commit is contained in:
Martin Whitaker 2022-02-14 21:48:18 +00:00 committed by Martin Whitaker
parent f8b82eb0bd
commit 3245b6d916

View File

@ -107,9 +107,9 @@ int run_test(int my_cpu, int test, int stage, int iterations)
switch (test) { switch (test) {
// Address test, walking ones. // Address test, walking ones.
case 0: case 0:
cache_off(); if (my_cpu >= 0) cache_off();
ticks += test_addr_walk1(my_cpu); ticks += test_addr_walk1(my_cpu);
cache_on(); if (my_cpu >= 0) cache_on();
BAILOUT; BAILOUT;
break; break;