- 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
1 changed files with 2 additions and 2 deletions

View File

@ -130,8 +130,8 @@ inline volatile unsigned long long rdtsc()
if (CPU.bRDTSC) if (CPU.bRDTSC)
#endif #endif
{ {
register unsigned volatile long long tsc asm("eax"); register unsigned volatile long long tsc;
asm volatile ("\trdtsc\n" : : : "eax", "edx"); asm volatile ("\trdtsc\n" : "=A" (tsc));
return tsc; return tsc;
} }
return 0; return 0;