Commit 454c4a019f35653c15dd168f1f3de953a2c3aa6a

Sam Lantinga 2014-07-11T22:15:34

Fixed Visual Studio 2010 build

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/cpuinfo/SDL_cpuinfo.c b/src/cpuinfo/SDL_cpuinfo.c
index cc565e0..3f2308b 100644
--- a/src/cpuinfo/SDL_cpuinfo.c
+++ b/src/cpuinfo/SDL_cpuinfo.c
@@ -253,7 +253,7 @@ CPU_OSSavesYMM(void)
     {
         xor ecx, ecx
         _asm _emit 0x0f _asm _emit 0x01 _asm _emit 0xd0
-        mov a, xcr0
+        mov a, eax
     }
 #endif
     return ((a & 6) == 6) ? SDL_TRUE : SDL_FALSE;