From patchwork Mon Sep 26 06:22:32 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ray Wang X-Patchwork-Id: 116360 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 4051DB6F7B for ; Mon, 26 Sep 2011 16:24:14 +1000 (EST) Received: from localhost ([::1]:59554 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R84br-000206-54 for incoming@patchwork.ozlabs.org; Mon, 26 Sep 2011 02:24:11 -0400 Received: from eggs.gnu.org ([140.186.70.92]:49911) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R84bl-0001zo-90 for qemu-devel@nongnu.org; Mon, 26 Sep 2011 02:24:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R84bk-0006CA-Be for qemu-devel@nongnu.org; Mon, 26 Sep 2011 02:24:05 -0400 Received: from e23smtp03.au.ibm.com ([202.81.31.145]:44348) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R84bj-0006AJ-Qj for qemu-devel@nongnu.org; Mon, 26 Sep 2011 02:24:04 -0400 Received: from d23relay03.au.ibm.com (d23relay03.au.ibm.com [202.81.31.245]) by e23smtp03.au.ibm.com (8.14.4/8.13.1) with ESMTP id p8Q6IJd4014283 for ; Mon, 26 Sep 2011 16:18:19 +1000 Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p8Q6NkpH1400874 for ; Mon, 26 Sep 2011 16:23:49 +1000 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p8Q6NkhD032118 for ; Mon, 26 Sep 2011 16:23:46 +1000 Received: from Ray-Ubuntu-11.cn.ibm.com ([9.115.116.13]) by d23av04.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p8Q6NjMu030975; Mon, 26 Sep 2011 16:23:45 +1000 From: Ray Wang To: qemu-devel@nongnu.org Date: Mon, 26 Sep 2011 14:22:32 +0800 Message-Id: <1317018152-2574-1-git-send-email-raywang@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.4.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 202.81.31.145 Cc: raywang@linux.vnet.ibm.com Subject: [Qemu-devel] [PATCH] Changed the type of val argument of the function gt64120_writel() from uint32_t to uint64_t, so change the corresponding bswap32() to bswap64(). X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Xianlei Wang Signed-off-by: Xianlei Wang --- hw/gt64xxx.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/gt64xxx.c b/hw/gt64xxx.c index 1c34253..d0a31d2 100644 --- a/hw/gt64xxx.c +++ b/hw/gt64xxx.c @@ -312,7 +312,7 @@ static void gt64120_writel (void *opaque, target_phys_addr_t addr, uint32_t saddr; if (!(s->regs[GT_CPU] & 0x00001000)) - val = bswap32(val); + val = bswap64(val); saddr = (addr & 0xfff) >> 2; switch (saddr) { @@ -533,7 +533,7 @@ static void gt64120_writel (void *opaque, target_phys_addr_t addr, break; case GT_PCI0_CFGDATA: if (!(s->regs[GT_PCI0_CMD] & 1) && (s->pci.config_reg & 0x00fff800)) - val = bswap32(val); + val = bswap64(val); if (s->pci.config_reg & (1u << 31)) pci_data_write(s->pci.bus, s->pci.config_reg, val, 4); break;