]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
x64 JIT FLDCW R12 register crash workaround.
authorToni Wilen <twilen@winuae.net>
Mon, 21 Dec 2015 14:21:15 +0000 (16:21 +0200)
committerToni Wilen <twilen@winuae.net>
Mon, 21 Dec 2015 14:21:15 +0000 (16:21 +0200)
jit/codegen_x86.cpp
jit/compemu_raw_x86.cpp

index b89f267c8d36f1dd6c8dc44ee164bec6cb29d550..64d9f21dc81e95a9b767022e05150c10635182e5 100644 (file)
@@ -105,11 +105,12 @@ only target, and it's easier this way... */
 #define STACK_SHADOW_SPACE 0
 #endif
 
-uae_s8 always_used[]={4,-1};
 #if defined(CPU_x86_64)
+uae_s8 always_used[] = { 4, 12, -1 };
 uae_s8 can_byte[]={0,1,2,3,5,6,7,8,9,10,11,12,13,14,15,-1};
 uae_s8 can_word[]={0,1,2,3,5,6,7,8,9,10,11,12,13,14,15,-1};
 #else
+uae_s8 always_used[] = { 4, -1 };
 uae_s8 can_byte[]={0,1,2,3,-1};
 uae_s8 can_word[]={0,1,2,3,5,6,7,-1};
 #endif
index 41835f7bab55f36803f5892b70a458fdc5074ad8..9d44571bb62d2a76e2f2a927980bd2d6159f7e21 100644 (file)
@@ -61,11 +61,12 @@ only target, and it's easier this way... */
 #define STACK_ALIGN            16
 #define STACK_OFFSET   sizeof(void *)
 
-uae_u8 always_used[]={4,0xff};
 #if defined(__x86_64__)
+uae_u8 always_used[] = { 4, 12, 0xff };
 uae_s8 can_byte[]={0,1,2,3,5,6,7,8,9,10,11,12,13,14,15,-1};
 uae_s8 can_word[]={0,1,2,3,5,6,7,8,9,10,11,12,13,14,15,-1};
 #else
+uae_u8 always_used[] = { 4, 0xff };
 uae_u8 can_byte[]={0,1,2,3,0xff};
 uae_u8 can_word[]={0,1,2,3,5,6,7,0xff};
 #endif