From 3ee37fdc085f2ba3b5236187f5890a58cd9d9c55 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sat, 28 Mar 2009 03:31:52 +0000 Subject: [PATCH] - Fixed GCC rdtsc (for real this time, I hope). SVN r1511 (trunk) --- src/stats.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;