Commit bf6bca527c11dff117990acdeb8cb425e985788a
1 parent
f9bf2987
Account for MacOS X ABI reserved space in linkage area (Andreas Faerber)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4985 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
2 changed files
with
2 additions
and
2 deletions
tcg/ppc/tcg-target.c
@@ -25,7 +25,7 @@ | @@ -25,7 +25,7 @@ | ||
25 | static uint8_t *tb_ret_addr; | 25 | static uint8_t *tb_ret_addr; |
26 | 26 | ||
27 | #ifdef __APPLE__ | 27 | #ifdef __APPLE__ |
28 | -#define LINKAGE_AREA_SIZE 12 | 28 | +#define LINKAGE_AREA_SIZE 24 |
29 | #define BACK_CHAIN_OFFSET 8 | 29 | #define BACK_CHAIN_OFFSET 8 |
30 | #else | 30 | #else |
31 | #define LINKAGE_AREA_SIZE 8 | 31 | #define LINKAGE_AREA_SIZE 8 |
tcg/ppc/tcg-target.h
@@ -66,7 +66,7 @@ enum { | @@ -66,7 +66,7 @@ enum { | ||
66 | #define TCG_REG_CALL_STACK TCG_REG_R1 | 66 | #define TCG_REG_CALL_STACK TCG_REG_R1 |
67 | #define TCG_TARGET_STACK_ALIGN 16 | 67 | #define TCG_TARGET_STACK_ALIGN 16 |
68 | #ifdef __APPLE__ | 68 | #ifdef __APPLE__ |
69 | -#define TCG_TARGET_CALL_STACK_OFFSET 12 | 69 | +#define TCG_TARGET_CALL_STACK_OFFSET 24 |
70 | #else | 70 | #else |
71 | #define TCG_TARGET_CALL_ALIGN_ARGS 1 | 71 | #define TCG_TARGET_CALL_ALIGN_ARGS 1 |
72 | #define TCG_TARGET_CALL_STACK_OFFSET 8 | 72 | #define TCG_TARGET_CALL_STACK_OFFSET 8 |