Fixed bug #734 SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Sat, 26 Sep 2009 10:05:07 +0000
branchSDL-1.2
changeset 4242 fa62bede8038
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
--- a/src/cpuinfo/SDL_cpuinfo.c	Sat Sep 26 06:01:27 2009 +0000
+++ b/src/cpuinfo/SDL_cpuinfo.c	Sat Sep 26 10:05:07 2009 +0000
@@ -161,7 +161,7 @@
 "        movl    %%edi,%%ebx\n"
 	: "=m" (features)
 	:
-	: "%eax", "%ecx", "%edx", "%edi"
+	: "%eax", "%ebx", "%ecx", "%edx", "%edi"
 	);
 #elif defined(__GNUC__) && defined(__x86_64__)
 	__asm__ (
@@ -178,7 +178,7 @@
 "        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 {
@@ -230,7 +230,7 @@
 "        movl    %%edi,%%ebx\n"
 	: "=m" (features)
 	:
-	: "%eax", "%ecx", "%edx", "%edi"
+	: "%eax", "%ebx", "%ecx", "%edx", "%edi"
 	);
 #elif defined(__GNUC__) && defined (__x86_64__)
 	__asm__ (
@@ -246,7 +246,7 @@
 "        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 {