Fixed bug #734
Nicholas Phillips 2009-04-26 21:34:05 PDT I am using x64 Linux (using Intel Core 2 DUO), and I have noticed that there is an error in SDL_cpuinfo.c, function CPU_getCPUIDFeaturesExt for my platform. --HG-- branch : SDL-1.2 extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403906
This commit is contained in:
parent
269b8143af
commit
34602312d2
1 changed files with 4 additions and 4 deletions
|
@ -161,7 +161,7 @@ static __inline__ int CPU_getCPUIDFeatures(void)
|
||||||
" movl %%edi,%%ebx\n"
|
" movl %%edi,%%ebx\n"
|
||||||
: "=m" (features)
|
: "=m" (features)
|
||||||
:
|
:
|
||||||
: "%eax", "%ecx", "%edx", "%edi"
|
: "%eax", "%ebx", "%ecx", "%edx", "%edi"
|
||||||
);
|
);
|
||||||
#elif defined(__GNUC__) && defined(__x86_64__)
|
#elif defined(__GNUC__) && defined(__x86_64__)
|
||||||
__asm__ (
|
__asm__ (
|
||||||
|
@ -178,7 +178,7 @@ static __inline__ int CPU_getCPUIDFeatures(void)
|
||||||
" movq %%rdi,%%rbx\n"
|
" movq %%rdi,%%rbx\n"
|
||||||
: "=m" (features)
|
: "=m" (features)
|
||||||
:
|
:
|
||||||
: "%rax", "%rcx", "%rdx", "%rdi"
|
: "%rax", "%rbx", "%rcx", "%rdx", "%rdi"
|
||||||
);
|
);
|
||||||
#elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
|
#elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
|
||||||
__asm {
|
__asm {
|
||||||
|
@ -230,7 +230,7 @@ static __inline__ int CPU_getCPUIDFeaturesExt(void)
|
||||||
" movl %%edi,%%ebx\n"
|
" movl %%edi,%%ebx\n"
|
||||||
: "=m" (features)
|
: "=m" (features)
|
||||||
:
|
:
|
||||||
: "%eax", "%ecx", "%edx", "%edi"
|
: "%eax", "%ebx", "%ecx", "%edx", "%edi"
|
||||||
);
|
);
|
||||||
#elif defined(__GNUC__) && defined (__x86_64__)
|
#elif defined(__GNUC__) && defined (__x86_64__)
|
||||||
__asm__ (
|
__asm__ (
|
||||||
|
@ -246,7 +246,7 @@ static __inline__ int CPU_getCPUIDFeaturesExt(void)
|
||||||
" movq %%rdi,%%rbx\n"
|
" movq %%rdi,%%rbx\n"
|
||||||
: "=m" (features)
|
: "=m" (features)
|
||||||
:
|
:
|
||||||
: "%rax", "%rcx", "%rdx", "%rdi"
|
: "%rax", "%rbx", "%rcx", "%rdx", "%rdi"
|
||||||
);
|
);
|
||||||
#elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
|
#elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
|
||||||
__asm {
|
__asm {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue