summaryrefslogtreecommitdiff
path: root/tcg
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-24 05:36:16 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-24 05:36:16 +0000
commitddf3b1766bb64bc6f6b3c75073ab924be3989e7b (patch)
tree8b5ae15dfac7c575c5beee5da864163c538ffe53 /tcg
parent4011c20ba53d61fc87caf5c939abd461c58c0d7f (diff)
downloadqemu-ddf3b1766bb64bc6f6b3c75073ab924be3989e7b.tar.gz
qemu-ddf3b1766bb64bc6f6b3c75073ab924be3989e7b.tar.bz2
qemu-ddf3b1766bb64bc6f6b3c75073ab924be3989e7b.zip
Define stack offsets
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4554 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'tcg')
-rw-r--r--tcg/sparc/tcg-target.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tcg/sparc/tcg-target.h b/tcg/sparc/tcg-target.h
index 195d6c76d3..996e54af53 100644
--- a/tcg/sparc/tcg-target.h
+++ b/tcg/sparc/tcg-target.h
@@ -74,6 +74,11 @@ enum {
/* used for function call generation */
#define TCG_REG_CALL_STACK TCG_REG_O6
#define TCG_TARGET_STACK_ALIGN 16
+#ifdef __arch64__
+#define TCG_TARGET_CALL_STACK_OFFSET 2047
+#else
+#define TCG_TARGET_CALL_STACK_OFFSET 0
+#endif
#if defined(__sparc_v9__) && !defined(__sparc_v8plus__)
#define TCG_TARGET_STACK_MINFRAME 176