From patchwork Fri Jan 11 16:41:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 211449 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 751272C035C for ; Sat, 12 Jan 2013 10:08:57 +1100 (EST) Received: from localhost ([::1]:58014 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtniZ-000761-F5 for incoming@patchwork.ozlabs.org; Fri, 11 Jan 2013 18:08:55 -0500 Received: from eggs.gnu.org ([208.118.235.92]:45307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtniP-00074l-Lp for qemu-devel@nongnu.org; Fri, 11 Jan 2013 18:08:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TtniM-0004OK-GF for qemu-devel@nongnu.org; Fri, 11 Jan 2013 18:08:45 -0500 Received: from smtp.citrix.com ([66.165.176.89]:51030) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtniC-0004N6-Kg; Fri, 11 Jan 2013 18:08:32 -0500 X-IronPort-AV: E=Sophos;i="4.84,455,1355097600"; d="scan'208";a="3528761" Received: from ftlpex01cl01.citrite.net ([10.13.107.78]) by FTLPIPO01.CITRIX.COM with ESMTP/TLS/AES128-SHA; 11 Jan 2013 23:08:27 +0000 Received: from meteora.cam.xci-test.com (10.80.248.22) by smtprelay.citrix.com (10.13.107.78) with Microsoft SMTP Server id 14.2.318.1; Fri, 11 Jan 2013 18:08:26 -0500 From: Julien Grall To: Date: Fri, 11 Jan 2013 16:41:43 +0000 Message-ID: <1357922503-20202-1-git-send-email-julien.grall@citrix.com> X-Mailer: git-send-email 1.7.10.4 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: qemu-trivial@nongnu.org, Julien Grall , aliguori@us.ibm.com Subject: [Qemu-devel] [PATCH] hw/pc.c: add ULL suffix in ioport80_read and ioportF0_read return value 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 The commit c02e1eac887b1b0aee7361b1fcf889e7d47fed9d broke the compilation for i386. ULL need to be specify for uint64_t value. Signed-off-by: Julien Grall --- hw/pc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index dfa3144..ba1f19d 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -105,7 +105,7 @@ static void ioport80_write(void *opaque, hwaddr addr, uint64_t data, static uint64_t ioport80_read(void *opaque, hwaddr addr, unsigned size) { - return 0xffffffffffffffff; + return 0xffffffffffffffffULL; } /* MSDOS compatibility mode FPU exception support */ @@ -130,7 +130,7 @@ static void ioportF0_write(void *opaque, hwaddr addr, uint64_t data, static uint64_t ioportF0_read(void *opaque, hwaddr addr, unsigned size) { - return 0xffffffffffffffff; + return 0xffffffffffffffffULL; } /* TSC handling */