aboutsummaryrefslogtreecommitdiff
path: root/tcg/ppc
diff options
context:
space:
mode:
authorJuergen Lock <nox@jelal.kn-bremen.de>2010-02-19 19:30:07 +0100
committermalc <av1474@comtv.ru>2010-02-20 01:37:33 +0300
commit5da79c86a3744e3a901c7986c109dd06951befd2 (patch)
treefeb24085268240c267ef2724db7af76f22fe9d7d /tcg/ppc
parent58d9b1e0edf41cf74639172207fb7e4f09ff84e4 (diff)
downloadqemu-5da79c86a3744e3a901c7986c109dd06951befd2.zip
qemu-5da79c86a3744e3a901c7986c109dd06951befd2.tar.gz
qemu-5da79c86a3744e3a901c7986c109dd06951befd2.tar.bz2
Use ppc host calling convention definitions to set TCG_TARGET_CALL_{ALIGN_ARGS,STACK_OFFSET}.
New version after malc's comments. (This avoids having to do #if defined __linux__ || defined __FreeBSD__ || defined __FreeBSD_kernel__ for the third case.) Submitted by: Andreas Tobler <andreast@fgznet.ch> (original version) Signed-off-by: Juergen Lock <nox@jelal.kn-bremen.de> Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'tcg/ppc')
-rw-r--r--tcg/ppc/tcg-target.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tcg/ppc/tcg-target.h b/tcg/ppc/tcg-target.h
index 0197e79..f2ed4d7 100644
--- a/tcg/ppc/tcg-target.h
+++ b/tcg/ppc/tcg-target.h
@@ -65,11 +65,11 @@ enum {
/* used for function call generation */
#define TCG_REG_CALL_STACK TCG_REG_R1
#define TCG_TARGET_STACK_ALIGN 16
-#if defined __APPLE__
+#if defined _CALL_DARWIN
#define TCG_TARGET_CALL_STACK_OFFSET 24
-#elif defined _AIX
+#elif defined _CALL_AIX
#define TCG_TARGET_CALL_STACK_OFFSET 52
-#elif defined __linux__
+#elif defined _CALL_SYSV
#define TCG_TARGET_CALL_ALIGN_ARGS 1
#define TCG_TARGET_CALL_STACK_OFFSET 8
#else