aboutsummaryrefslogtreecommitdiff
path: root/tcg
diff options
context:
space:
mode:
authormalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>2008-08-03 19:04:11 +0000
committermalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>2008-08-03 19:04:11 +0000
commitbf6bca527c11dff117990acdeb8cb425e985788a (patch)
treedec96aafa24fd5ca240c16447dd80e6fa652bfba /tcg
parentf9bf298717ef9ac3b0ebf2924f4fdd8d56d258f1 (diff)
downloadqemu-bf6bca527c11dff117990acdeb8cb425e985788a.zip
qemu-bf6bca527c11dff117990acdeb8cb425e985788a.tar.gz
qemu-bf6bca527c11dff117990acdeb8cb425e985788a.tar.bz2
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
Diffstat (limited to 'tcg')
-rw-r--r--tcg/ppc/tcg-target.c2
-rw-r--r--tcg/ppc/tcg-target.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/tcg/ppc/tcg-target.c b/tcg/ppc/tcg-target.c
index d6e9c5f..0fe3021 100644
--- a/tcg/ppc/tcg-target.c
+++ b/tcg/ppc/tcg-target.c
@@ -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
diff --git a/tcg/ppc/tcg-target.h b/tcg/ppc/tcg-target.h
index a6544f8..d46c19d 100644
--- a/tcg/ppc/tcg-target.h
+++ b/tcg/ppc/tcg-target.h
@@ -66,7 +66,7 @@ enum {
#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