aboutsummaryrefslogtreecommitdiff
path: root/tcg
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-13 20:05:32 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-09-13 20:05:32 +0000
commitbaf8cc5275c2b837cd1d879cb36e74a686e3f0d6 (patch)
tree02f9d3a04d9ff9454c74bde8ae5e6b24c0d9e7e1 /tcg
parent72ccba795bbd3668e9dc3a26fda1444b8fb1621b (diff)
downloadqemu-baf8cc5275c2b837cd1d879cb36e74a686e3f0d6.zip
qemu-baf8cc5275c2b837cd1d879cb36e74a686e3f0d6.tar.gz
qemu-baf8cc5275c2b837cd1d879cb36e74a686e3f0d6.tar.bz2
Fix stack alignment on Sparc32 host
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5202 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'tcg')
-rw-r--r--tcg/sparc/tcg-target.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tcg/sparc/tcg-target.h b/tcg/sparc/tcg-target.h
index d725f26..8dc07d3 100644
--- a/tcg/sparc/tcg-target.h
+++ b/tcg/sparc/tcg-target.h
@@ -79,7 +79,8 @@ enum {
#define TCG_TARGET_CALL_STACK_OFFSET (2047 + TCG_TARGET_STACK_MINFRAME)
#define TCG_TARGET_STACK_ALIGN 16
#else
-#define TCG_TARGET_STACK_MINFRAME (92 + 2 * (int)sizeof(long))
+// AREG0 + one word for alignment
+#define TCG_TARGET_STACK_MINFRAME (92 + (2 + 1) * (int)sizeof(long))
#define TCG_TARGET_CALL_STACK_OFFSET TCG_TARGET_STACK_MINFRAME
#define TCG_TARGET_STACK_ALIGN 8
#endif