From patchwork Fri Sep 9 13:40:08 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 114100 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 983B3B6F93 for ; Fri, 9 Sep 2011 23:32:04 +1000 (EST) Received: from localhost ([::1]:58564 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R21BY-0006HK-LO for incoming@patchwork.ozlabs.org; Fri, 09 Sep 2011 09:32:00 -0400 Received: from eggs.gnu.org ([140.186.70.92]:40851) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R21BM-00063W-Fa for qemu-devel@nongnu.org; Fri, 09 Sep 2011 09:31:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R21BL-0000OQ-EP for qemu-devel@nongnu.org; Fri, 09 Sep 2011 09:31:48 -0400 Received: from smtp.citrix.com ([66.165.176.89]:32480) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R21BL-0000OC-8f for qemu-devel@nongnu.org; Fri, 09 Sep 2011 09:31:47 -0400 X-IronPort-AV: E=Sophos;i="4.68,356,1312171200"; d="scan'208";a="16825056" Received: from ftlpmailmx02.citrite.net ([10.13.107.66]) by FTLPIPO01.CITRIX.COM with ESMTP/TLS/RC4-MD5; 09 Sep 2011 09:31:46 -0400 Received: from smtp01.ad.xensource.com (10.219.128.104) by smtprelay.citrix.com (10.13.107.66) with Microsoft SMTP Server id 8.3.137.0; Fri, 9 Sep 2011 09:31:46 -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 p89DVfEc032174; Fri, 9 Sep 2011 06:31:45 -0700 From: To: qemu-devel@nongnu.org Date: Fri, 9 Sep 2011 14:40:08 +0100 Message-ID: <1315575609-30317-3-git-send-email-stefano.stabellini@eu.citrix.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: References: 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: stefano.stabellini@eu.citrix.com Subject: [Qemu-devel] [PATCH 3/4] 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++) {