From patchwork Thu Jul 28 13:29:35 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 107250 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 29009B6F18 for ; Thu, 28 Jul 2011 23:24:12 +1000 (EST) Received: from localhost ([::1]:47495 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmQZM-0000RR-K0 for incoming@patchwork.ozlabs.org; Thu, 28 Jul 2011 09:24:08 -0400 Received: from eggs.gnu.org ([140.186.70.92]:44898) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmQYv-0007gg-2s for qemu-devel@nongnu.org; Thu, 28 Jul 2011 09:23:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QmQYt-0004Vm-Un for qemu-devel@nongnu.org; Thu, 28 Jul 2011 09:23:41 -0400 Received: from smtp.citrix.com ([66.165.176.89]:50539) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmQYt-0004Vg-Rl for qemu-devel@nongnu.org; Thu, 28 Jul 2011 09:23:39 -0400 X-IronPort-AV: E=Sophos;i="4.67,282,1309752000"; d="scan'208";a="15306697" Received: from ftlpmailmx01.citrite.net ([10.13.107.65]) by FTLPIPO01.CITRIX.COM with ESMTP/TLS/RC4-MD5; 28 Jul 2011 09:23:39 -0400 Received: from smtp01.ad.xensource.com (10.219.128.104) by smtprelay.citrix.com (10.13.107.65) with Microsoft SMTP Server id 8.3.137.0; Thu, 28 Jul 2011 09:23:39 -0400 Received: from localhost.localdomain (kaball.uk.xensource.com [10.80.2.59]) by smtp01.ad.xensource.com (8.13.1/8.13.1) with ESMTP id p6SDNRr6010150; Thu, 28 Jul 2011 06:23:32 -0700 From: To: qemu-devel@nongnu.org Date: Thu, 28 Jul 2011 14:29:35 +0100 Message-ID: <1311859775-19960-3-git-send-email-stefano.stabellini@eu.citrix.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1311859775-19960-1-git-send-email-stefano.stabellini@eu.citrix.com> References: <1311859775-19960-1-git-send-email-stefano.stabellini@eu.citrix.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.165.176.89 Cc: xen-devel@lists.xensource.com, agraf@suse.de, Stefano Stabellini Subject: [Qemu-devel] [PATCH RESEND 3/3] xen: use uint64_t instead of target_ulong in cpu_ioreq_move 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: Stefano Stabellini cpu_ioreq_move might move 8 bytes at a time so we must make sure that the temporary variable can hold 8 bytes. Signed-off-by: Stefano Stabellini --- xen-all.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/xen-all.c b/xen-all.c index 9eaeac1..3611e19 100644 --- a/xen-all.c +++ b/xen-all.c @@ -620,7 +620,7 @@ static void cpu_ioreq_move(ioreq_t *req) } } } else { - target_ulong tmp; + uint64_t tmp; if (req->dir == IOREQ_READ) { for (i = 0; i < req->count; i++) {