From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L6VuR-0004tE-I4 for qemu-devel@nongnu.org; Sat, 29 Nov 2008 14:55:19 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L6VuQ-0004pt-5n for qemu-devel@nongnu.org; Sat, 29 Nov 2008 14:55:19 -0500 Received: from [199.232.76.173] (port=35515 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6VuP-0004pI-QS for qemu-devel@nongnu.org; Sat, 29 Nov 2008 14:55:17 -0500 Received: from savannah.gnu.org ([199.232.41.3]:40244 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L6VuP-0000iT-H2 for qemu-devel@nongnu.org; Sat, 29 Nov 2008 14:55:17 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1L6VuO-0007ZA-N1 for qemu-devel@nongnu.org; Sat, 29 Nov 2008 19:55:16 +0000 Received: from malc by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1L6VuO-0007Z6-9i for qemu-devel@nongnu.org; Sat, 29 Nov 2008 19:55:16 +0000 MIME-Version: 1.0 Errors-To: malc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: malc Message-Id: Date: Sat, 29 Nov 2008 19:55:16 +0000 Subject: [Qemu-devel] [5815] Fix alignment of 64bit args Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 =================================================================== --- trunk/tcg/tcg.c 2008-11-29 16:51:42 UTC (rev 5814) +++ trunk/tcg/tcg.c 2008-11-29 19:55:15 UTC (rev 5815) @@ -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