From patchwork Thu Jan 6 21:54:33 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aurelien Jarno X-Patchwork-Id: 77811 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 361B3B713E for ; Fri, 7 Jan 2011 09:02:18 +1100 (EST) Received: from localhost ([127.0.0.1]:40395 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PaxuS-0007kH-8N for incoming@patchwork.ozlabs.org; Thu, 06 Jan 2011 17:02:16 -0500 Received: from [140.186.70.92] (port=33317 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PaxnE-00053k-0F for qemu-devel@nongnu.org; Thu, 06 Jan 2011 16:54:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PaxnA-0008Fl-PE for qemu-devel@nongnu.org; Thu, 06 Jan 2011 16:54:47 -0500 Received: from hall.aurel32.net ([88.191.126.93]:43451) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PaxnA-0008Ff-IS for qemu-devel@nongnu.org; Thu, 06 Jan 2011 16:54:44 -0500 Received: from [2001:470:d4ed:0:5e26:aff:fe2b:6f5b] (helo=volta.aurel32.net) by hall.aurel32.net with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1Paxn9-0004ey-S6; Thu, 06 Jan 2011 22:54:43 +0100 Received: from aurel32 by volta.aurel32.net with local (Exim 4.72) (envelope-from ) id 1Paxn2-0001nh-Ql; Thu, 06 Jan 2011 22:54:36 +0100 From: Aurelien Jarno To: qemu-devel@nongnu.org Date: Thu, 6 Jan 2011 22:54:33 +0100 Message-Id: <1294350874-6885-2-git-send-email-aurelien@aurel32.net> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1294350874-6885-1-git-send-email-aurelien@aurel32.net> References: <1294350874-6885-1-git-send-email-aurelien@aurel32.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: Andrzej Zaborowski , Aurelien Jarno Subject: [Qemu-devel] [PATCH 2/3] tcg/arm: fix qemu_st64 for big endian targets X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Due to a typo, qemu_st64 doesn't properly byteswap the 32-bit low word of a 64 bit word before saving it. This patch fixes that. Cc: Andrzej Zaborowski Signed-off-by: Aurelien Jarno Acked-by: Andrzej Zaborowski --- tcg/arm/tcg-target.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tcg/arm/tcg-target.c b/tcg/arm/tcg-target.c index 9def2e5..08c44c1 100644 --- a/tcg/arm/tcg-target.c +++ b/tcg/arm/tcg-target.c @@ -1248,7 +1248,7 @@ static inline void tcg_out_qemu_st(TCGContext *s, const TCGArg *args, int opc) tcg_out_bswap32(s, COND_EQ, TCG_REG_R0, data_reg2); tcg_out_st32_rwb(s, COND_EQ, TCG_REG_R0, TCG_REG_R1, addr_reg); tcg_out_bswap32(s, COND_EQ, TCG_REG_R0, data_reg); - tcg_out_st32_12(s, COND_EQ, data_reg, TCG_REG_R1, 4); + tcg_out_st32_12(s, COND_EQ, TCG_REG_R0, TCG_REG_R1, 4); } else { tcg_out_st32_rwb(s, COND_EQ, data_reg, TCG_REG_R1, addr_reg); tcg_out_st32_12(s, COND_EQ, data_reg2, TCG_REG_R1, 4);