Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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.
  • Loading branch information
slouken committed Sep 26, 2009
1 parent b1669a2 commit b1e69224c7d92930d08b4fa7cf405186a6012a50
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/cpuinfo/SDL_cpuinfo.c
@@ -166,7 +166,7 @@ CPU_getCPUIDFeatures(void)
" movl %%edi,%%ebx\n"
: "=m" (features)
:
: "%eax", "%ecx", "%edx", "%edi"
: "%eax", "%ebx", "%ecx", "%edx", "%edi"
);
#elif defined(__GNUC__) && defined(__x86_64__)
__asm__ (
@@ -183,7 +183,7 @@ CPU_getCPUIDFeatures(void)
" movq %%rdi,%%rbx\n"
: "=m" (features)
:
: "%rax", "%rcx", "%rdx", "%rdi"
: "%rax", "%rbx", "%rcx", "%rdx", "%rdi"
);
#elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
__asm {
@@ -238,7 +238,7 @@ CPU_getCPUIDFeaturesExt(void)
" movl %%edi,%%ebx\n"
: "=m" (features)
:
: "%eax", "%ecx", "%edx", "%edi"
: "%eax", "%ebx", "%ecx", "%edx", "%edi"
);
#elif defined(__GNUC__) && defined (__x86_64__)
__asm__ (
@@ -254,7 +254,7 @@ CPU_getCPUIDFeaturesExt(void)
" movq %%rdi,%%rbx\n"
: "=m" (features)
:
: "%rax", "%rcx", "%rdx", "%rdi"
: "%rax", "%rbx", "%rcx", "%rdx", "%rdi"
);
#elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
__asm {

0 comments on commit b1e6922

Please sign in to comment.