Commit bf6bca527c11dff117990acdeb8cb425e985788a

Authored by malc
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
tcg/ppc/tcg-target.c
... ... @@ -25,7 +25,7 @@
25 25 static uint8_t *tb_ret_addr;
26 26  
27 27 #ifdef __APPLE__
28   -#define LINKAGE_AREA_SIZE 12
  28 +#define LINKAGE_AREA_SIZE 24
29 29 #define BACK_CHAIN_OFFSET 8
30 30 #else
31 31 #define LINKAGE_AREA_SIZE 8
... ...
tcg/ppc/tcg-target.h
... ... @@ -66,7 +66,7 @@ enum {
66 66 #define TCG_REG_CALL_STACK TCG_REG_R1
67 67 #define TCG_TARGET_STACK_ALIGN 16
68 68 #ifdef __APPLE__
69   -#define TCG_TARGET_CALL_STACK_OFFSET 12
  69 +#define TCG_TARGET_CALL_STACK_OFFSET 24
70 70 #else
71 71 #define TCG_TARGET_CALL_ALIGN_ARGS 1
72 72 #define TCG_TARGET_CALL_STACK_OFFSET 8
... ...