qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [4559] Fix stack offsets and alignment
@ 2008-05-24 16:41 Blue Swirl
  0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2008-05-24 16:41 UTC (permalink / raw)
  To: qemu-devel

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
===================================================================
--- trunk/tcg/sparc/tcg-target.h	2008-05-24 16:03:59 UTC (rev 4558)
+++ trunk/tcg/sparc/tcg-target.h	2008-05-24 16:41:17 UTC (rev 4559)
@@ -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 */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-05-24 16:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-24 16:41 [Qemu-devel] [4559] Fix stack offsets and alignment Blue Swirl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).