From 7060f72186ce168cf9b98081b3f277a3daa9ecc2 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sun, 29 Mar 2009 02:40:41 +0000 Subject: [PATCH] - So, I guess if you're doing the inline asm properly, tsc doesn't need to be marked as volatile. SVN r1513 (trunk) --- src/stats.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stats.h b/src/stats.h index cad01f975d..65be6867a6 100644 --- a/src/stats.h +++ b/src/stats.h @@ -130,7 +130,7 @@ inline volatile unsigned long long rdtsc() if (CPU.bRDTSC) #endif { - register unsigned volatile long long tsc; + register unsigned long long tsc; asm volatile ("\trdtsc\n" : "=A" (tsc)); return tsc; }