Skip to contentSkip to conversation

[5815] Fix alignment of 64bit args

Qemu-devel malc 1 participant 1 message Nov 29, 2008

lore
Share & tools
lore

malc

author
#0 lore raw

Revision: 5815

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5815
Author:   malc
Date:     2008-11-29 19:55:15 +0000 (Sat, 29 Nov 2008)

Log Message:
-----------
Fix alignment of 64bit args

Unbreaks sparc and mips64el. (Reported by Thiemo Seufer)

Modified Paths:
--------------
trunk/tcg/tcg.c

Modified: trunk/tcg/tcg.c
===================================================================

tcg/tcg.c +2 -1
@@ -621,8 +621,9 @@
 #endif
 #ifdef TCG_TARGET_CALL_ALIGN_ARGS
             /* some targets want aligned 64 bit args */
-            if (i & 1) {
+            if (real_args & 1) {
                 *gen_opparam_ptr++ = TCG_CALL_DUMMY_ARG;
+                real_args++;
             }
 #endif
 #ifdef TCG_TARGET_WORDS_BIGENDIAN