From patchwork Sat Feb 5 22:56:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 82023 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 9BDB4B70CD for ; Sun, 6 Feb 2011 09:58:45 +1100 (EST) Received: from localhost ([127.0.0.1]:43750 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Plr5U-0002gx-I2 for incoming@patchwork.ozlabs.org; Sat, 05 Feb 2011 17:58:40 -0500 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:date:message-id:x-mailer :mime-version:content-type:content-transfer-encoding; bh=nz6Zq5xlQauN0DpcwENKhsdlmREgPbJfMPjdXTWags0=; b=pwfvJKTWDA2l+TUAfZTlEOpmt9a0Iqj8L6FLQXVyREgMoj8YqD6LizUBowu+x1g9vx StbSlhkhRInVD+39ZDPqSdgyAp+J8Uu6j9eGI68YMirSmKPWj6onbQnVYHmWbYVJgAmA piVPpCpKMWNKqd1YcfwuQLj/eJ+/EHtPWVjfc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:x-mailer:mime-version:content-type :content-transfer-encoding; b=tuTFXroR18sYyLMbFl9spUMe8WHVqbmDCnuy0sLJwGaTys1UGwGXTR98kIw+3FLfZN VVKgn+sZFWWKN/xD4eI2fo8nGoVGrwj32rF3ZB3Q8HQgWotSo9BeEXGp2Cp2XRYcj6dr xdpT2ABZhzB2iFnjLdpILYRqMOvH9xC/+Ge/Y= Received: by 10.213.21.211 with SMTP id k19mr3195681ebb.66.1296946640378; Sat, 05 Feb 2011 14:57:20 -0800 (PST) Received: from doriath.ww600.siemens.net (92-100-171-30.dynamic.avangarddsl.ru [92.100.171.30]) by mx.google.com with ESMTPS id b52sm1759390eei.13.2011.02.05.14.57.18 (version=SSLv3 cipher=RC4-MD5); Sat, 05 Feb 2011 14:57:19 -0800 (PST) From: Dmitry Eremin-Solenikov To: qemu-devel@nongnu.org Date: Sun, 6 Feb 2011 01:56:53 +0300 Message-Id: <1296946613-11832-1-git-send-email-dbaryshkov@gmail.com> X-Mailer: git-send-email 1.7.2.3 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.215.45 Subject: [Qemu-devel] [PATCH] i386: fix MCE compilation X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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); } } }