Fixed bug #734 SDL-1.2
authorSam Lantinga
Sat, 26 Sep 2009 10:05:07 +0000
branchSDL-1.2
changeset 4242fa62bede8038
parent 4241 d3a210342761
child 4243 22aec2e85b86
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.
src/cpuinfo/SDL_cpuinfo.c
     1.1 --- a/src/cpuinfo/SDL_cpuinfo.c	Sat Sep 26 06:01:27 2009 +0000
     1.2 +++ b/src/cpuinfo/SDL_cpuinfo.c	Sat Sep 26 10:05:07 2009 +0000
     1.3 @@ -161,7 +161,7 @@
     1.4  "        movl    %%edi,%%ebx\n"
     1.5  	: "=m" (features)
     1.6  	:
     1.7 -	: "%eax", "%ecx", "%edx", "%edi"
     1.8 +	: "%eax", "%ebx", "%ecx", "%edx", "%edi"
     1.9  	);
    1.10  #elif defined(__GNUC__) && defined(__x86_64__)
    1.11  	__asm__ (
    1.12 @@ -178,7 +178,7 @@
    1.13  "        movq    %%rdi,%%rbx\n"
    1.14  	: "=m" (features)
    1.15  	:
    1.16 -	: "%rax", "%rcx", "%rdx", "%rdi"
    1.17 +	: "%rax", "%rbx", "%rcx", "%rdx", "%rdi"
    1.18  	);
    1.19  #elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
    1.20  	__asm {
    1.21 @@ -230,7 +230,7 @@
    1.22  "        movl    %%edi,%%ebx\n"
    1.23  	: "=m" (features)
    1.24  	:
    1.25 -	: "%eax", "%ecx", "%edx", "%edi"
    1.26 +	: "%eax", "%ebx", "%ecx", "%edx", "%edi"
    1.27  	);
    1.28  #elif defined(__GNUC__) && defined (__x86_64__)
    1.29  	__asm__ (
    1.30 @@ -246,7 +246,7 @@
    1.31  "        movq    %%rdi,%%rbx\n"
    1.32  	: "=m" (features)
    1.33  	:
    1.34 -	: "%rax", "%rcx", "%rdx", "%rdi"
    1.35 +	: "%rax", "%rbx", "%rcx", "%rdx", "%rdi"
    1.36  	);
    1.37  #elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
    1.38  	__asm {