Fixed bug #734
authorSam Lantinga <slouken@libsdl.org>
Sat, 26 Sep 2009 10:04:38 +0000
changeset 3314 8b01b0648f01
parent 3313 50848072885e
child 3315 87ffdad11607
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 09:57:32 2009 +0000
+++ b/src/cpuinfo/SDL_cpuinfo.c	Sat Sep 26 10:04:38 2009 +0000
@@ -166,7 +166,7 @@
 "        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 @@
 "        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 @@
 "        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 @@
 "        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 {