mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-07 07:06:46 +00:00
preserve r11 as the register used to resolve pointers to functions
This commit is contained in:
parent
b3bd00f159
commit
129f80faf6
@ -109,7 +109,8 @@ uae_u8 call_saved[]={0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0};
|
|||||||
*/
|
*/
|
||||||
#if defined(__x86_64__)
|
#if defined(__x86_64__)
|
||||||
/* callee-saved registers as defined by Linux/x86_64 ABI: rbx, rbp, rsp, r12 - r15 */
|
/* callee-saved registers as defined by Linux/x86_64 ABI: rbx, rbp, rsp, r12 - r15 */
|
||||||
static const uae_u8 need_to_preserve[]={0,0,0,1,0,1,0,0,0,0,0,0,1,1,1,1};
|
/* preserve r11 because it's generally used to hold pointers to functions */
|
||||||
|
static const uae_u8 need_to_preserve[]={0,0,0,1,0,1,0,0,0,0,0,1,1,1,1,1};
|
||||||
#else
|
#else
|
||||||
static const uae_u8 need_to_preserve[]={1,1,1,1,0,1,1,1};
|
static const uae_u8 need_to_preserve[]={1,1,1,1,0,1,1,1};
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user