- Fixed GCC rdtsc (for real this time, I hope).

SVN r1511 (trunk)
This commit is contained in:
Randy Heit 2009-03-28 03:31:52 +00:00
parent 366ed7047a
commit 3ee37fdc08

View file

@ -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;