diff options
author | malc <malc@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-11-18 01:42:22 +0000 |
---|---|---|
committer | malc <malc@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-11-18 01:42:22 +0000 |
commit | b29fe3ed48c72e6a30a29c7fbdf3b841c59551c5 (patch) | |
tree | 9e7d103d523da09947398564fae5f90c9297121e /tcg/ppc/tcg-target.h | |
parent | 14f87098c07c33cc46fb7510be739e63c3a9be07 (diff) | |
download | qemu-b29fe3ed48c72e6a30a29c7fbdf3b841c59551c5.zip qemu-b29fe3ed48c72e6a30a29c7fbdf3b841c59551c5.tar.gz qemu-b29fe3ed48c72e6a30a29c7fbdf3b841c59551c5.tar.bz2 |
Preliminary AIX support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5732 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'tcg/ppc/tcg-target.h')
-rw-r--r-- | tcg/ppc/tcg-target.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tcg/ppc/tcg-target.h b/tcg/ppc/tcg-target.h index d46c19d..1bc1dc3 100644 --- a/tcg/ppc/tcg-target.h +++ b/tcg/ppc/tcg-target.h @@ -65,11 +65,15 @@ enum { /* used for function call generation */ #define TCG_REG_CALL_STACK TCG_REG_R1 #define TCG_TARGET_STACK_ALIGN 16 -#ifdef __APPLE__ +#if defined __APPLE__ #define TCG_TARGET_CALL_STACK_OFFSET 24 -#else +#elif defined _AIX +#define TCG_TARGET_CALL_STACK_OFFSET 52 +#elif defined __linux__ #define TCG_TARGET_CALL_ALIGN_ARGS 1 #define TCG_TARGET_CALL_STACK_OFFSET 8 +#else +#error Unsupported system #endif /* optional instructions */ |