aboutsummaryrefslogtreecommitdiff
path: root/tcg/sparc
diff options
context:
space:
mode:
Diffstat (limited to 'tcg/sparc')
-rw-r--r--tcg/sparc/tcg-target.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/tcg/sparc/tcg-target.h b/tcg/sparc/tcg-target.h
index 996e54af5..4a0c831d2 100644
--- a/tcg/sparc/tcg-target.h
+++ b/tcg/sparc/tcg-target.h
@@ -73,17 +73,14 @@ 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
+#define TCG_TARGET_CALL_STACK_OFFSET (2047 + 176)
+#define TCG_TARGET_STACK_ALIGN 16
#else
#define TCG_TARGET_STACK_MINFRAME 92
+#define TCG_TARGET_CALL_STACK_OFFSET 92
+#define TCG_TARGET_STACK_ALIGN 8
#endif
/* optional instructions */