Received: from [140.186.70.92] (port=53325 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Plr4F-0001xz-7b for qemu-devel@nongnu.org; Sat, 05 Feb 2011 17:57:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Plr4E-0006Xo-AL for qemu-devel@nongnu.org; Sat, 05 Feb 2011 17:57:23 -0500 Received: from mail-ew0-f45.google.com ([209.85.215.45]:39182) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Plr4E-0006Xe-58 for qemu-devel@nongnu.org; Sat, 05 Feb 2011 17:57:22 -0500 Received: by ewy10 with SMTP id 10so1856039ewy.4 for ; Sat, 05 Feb 2011 14:57:20 -0800 (PST) From: Dmitry Eremin-Solenikov Date: Sun, 6 Feb 2011 01:56:53 +0300 Message-Id: <1296946613-11832-1-git-send-email-dbaryshkov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH] i386: fix MCE compilation List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This fixes the following error/warning in the target-i386/helper.c compilation: target-i386/helper.c: In function ‘cpu_inject_x86_mce’: target-i386/helper.c:1151: error: integer constant is too large for ‘long’ type Signed-off-by: Dmitry Eremin-Solenikov --- target-i386/helper.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-i386/helper.c b/target-i386/helper.c index 1217452..39456bc 100644 --- a/target-i386/helper.c +++ b/target-i386/helper.c @@ -1148,7 +1148,7 @@ void cpu_inject_x86_mce(CPUState *cenv, int bank, uint64_t status, continue; } - qemu_inject_x86_mce(env, 1, 0xa000000000000000, 0, 0, 0); + qemu_inject_x86_mce(env, 1, 0xa000000000000000LL, 0, 0, 0); } } } -- 1.7.2.3