Skip to contentSkip to conversation

[4559] Fix stack offsets and alignment

Qemu-devel Blue Swirl 1 participant 1 message May 24, 2008

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

Revision: 4559

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4559
Author:   blueswir1
Date:     2008-05-24 16:41:17 +0000 (Sat, 24 May 2008)

Log Message:
-----------
Fix stack offsets and alignment

Modified Paths:
--------------
trunk/tcg/sparc/tcg-target.h

Modified: trunk/tcg/sparc/tcg-target.h
===================================================================

tcg/sparc/tcg-target.h +4 -7
@@ -73,17 +73,14 @@
 
 /* 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 */