diff --git a/src/stats.h b/src/stats.h index 83f5151dc..cad01f975 100644 --- a/src/stats.h +++ b/src/stats.h @@ -130,8 +130,8 @@ inline volatile unsigned long long rdtsc() if (CPU.bRDTSC) #endif { - register unsigned volatile long long tsc asm("eax"); - asm volatile ("\trdtsc\n" : : : "eax", "edx"); + register unsigned volatile long long tsc; + asm volatile ("\trdtsc\n" : "=A" (tsc)); return tsc; } return 0;