Skip to contentSkip to conversation

[4985] Account for MacOS X ABI reserved space in linkage area ( Andreas Faerber)

Qemu-devel malc 1 participant 1 message Aug 3, 2008

lore
Share & tools
lore

malc

author
#0 lore raw

Revision: 4985

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4985
Author:   malc
Date:     2008-08-03 19:04:11 +0000 (Sun, 03 Aug 2008)

Log Message:
-----------
Account for MacOS X ABI reserved space in linkage area (Andreas Faerber)

Modified Paths:
--------------
trunk/tcg/ppc/tcg-target.c
trunk/tcg/ppc/tcg-target.h

Modified: trunk/tcg/ppc/tcg-target.c
===================================================================

tcg/ppc/tcg-target.c +1 -1
@@ -25,7 +25,7 @@
 static uint8_t *tb_ret_addr;
 
 #ifdef __APPLE__
-#define LINKAGE_AREA_SIZE 12
+#define LINKAGE_AREA_SIZE 24
 #define BACK_CHAIN_OFFSET 8
 #else
 #define LINKAGE_AREA_SIZE 8

Modified: trunk/tcg/ppc/tcg-target.h
===================================================================

tcg/ppc/tcg-target.h +1 -1
@@ -66,7 +66,7 @@
 #define TCG_REG_CALL_STACK TCG_REG_R1
 #define TCG_TARGET_STACK_ALIGN 16
 #ifdef __APPLE__
-#define TCG_TARGET_CALL_STACK_OFFSET 12
+#define TCG_TARGET_CALL_STACK_OFFSET 24
 #else
 #define TCG_TARGET_CALL_ALIGN_ARGS 1
 #define TCG_TARGET_CALL_STACK_OFFSET 8