summaryrefslogtreecommitdiffstats
path: root/tcg/ppc/tcg-target.h
diff options
context:
space:
mode:
authormalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>2008-08-03 19:04:07 +0000
committermalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>2008-08-03 19:04:07 +0000
commitf9bf298717ef9ac3b0ebf2924f4fdd8d56d258f1 (patch)
tree20c91220aeff4941a23ee9bf8475229a904789e7 /tcg/ppc/tcg-target.h
parent60e26a9167ab3bca18f4204616ad30082a6ea389 (diff)
downloadhqemu-f9bf298717ef9ac3b0ebf2924f4fdd8d56d258f1.zip
hqemu-f9bf298717ef9ac3b0ebf2924f4fdd8d56d258f1.tar.gz
Preliminary MacOS X on PPC32 support
Big thanks to BlueSwirl for Sparc failure analysis. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4984 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'tcg/ppc/tcg-target.h')
-rw-r--r--tcg/ppc/tcg-target.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/tcg/ppc/tcg-target.h b/tcg/ppc/tcg-target.h
index e21b992..a6544f8 100644
--- a/tcg/ppc/tcg-target.h
+++ b/tcg/ppc/tcg-target.h
@@ -65,8 +65,12 @@ enum {
/* used for function call generation */
#define TCG_REG_CALL_STACK TCG_REG_R1
#define TCG_TARGET_STACK_ALIGN 16
-#define TCG_TARGET_CALL_STACK_OFFSET 8
+#ifdef __APPLE__
+#define TCG_TARGET_CALL_STACK_OFFSET 12
+#else
#define TCG_TARGET_CALL_ALIGN_ARGS 1
+#define TCG_TARGET_CALL_STACK_OFFSET 8
+#endif
/* optional instructions */
#define TCG_TARGET_HAS_neg_i32
OpenPOWER on IntegriCloud