From patchwork Sat Nov 3 18:48:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Blue Swirl X-Patchwork-Id: 196918 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 2F65D2C00C4 for ; Sun, 4 Nov 2012 05:49:01 +1100 (EST) Received: from localhost ([::1]:56976 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TUimB-0007uk-DQ for incoming@patchwork.ozlabs.org; Sat, 03 Nov 2012 14:48:59 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TUim5-0007ue-3Q for qemu-devel@nongnu.org; Sat, 03 Nov 2012 14:48:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TUim3-0005ym-5d for qemu-devel@nongnu.org; Sat, 03 Nov 2012 14:48:53 -0400 Received: from mail-lb0-f173.google.com ([209.85.217.173]:63370) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TUim2-0005yg-U8 for qemu-devel@nongnu.org; Sat, 03 Nov 2012 14:48:51 -0400 Received: by mail-lb0-f173.google.com with SMTP id gj3so3101096lbb.4 for ; Sat, 03 Nov 2012 11:48:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=pRKm9Qu0vRLxNmVPGfFaz11MKcdVdg14VB4F97nrOWU=; b=akqB3ivk7SujNrQT3EKQKU1rg8ozAWdggdh3I9S0KkVs9aCPNeUcpEMzZJo6gT1FWg wPGKUrxc2isEdSjEvmJu057npz0KTqrjVX6SYajuFpXlKYCsu/Y51zkz1XEN3yKAjLfh GeERlc1veW/ey3CT+2NceaMJ8y5vNggRT55e4+cCMMHIPhBqdqiFcOFLoyJl7iitypxU u0Ui/fKuL2lUz2veFNf3eQroo6xlQTfFkhx64y3B4dvUkTN//Eej9PSLzNsXmpjt5CUA D9FeonuWoosPrJz9BI2J4/1eHIJW3RrY/TxyaQn1vp9OnH+2l7IgfaskBtqDR5cOQabH rANg== Received: by 10.152.104.148 with SMTP id ge20mr4744709lab.51.1351968529853; Sat, 03 Nov 2012 11:48:49 -0700 (PDT) Received: from localhost.localdomain (blueswirl.broker.freenet6.net. [2001:5c0:1000:b::b867]) by mx.google.com with ESMTPS id pz9sm4124034lab.11.2012.11.03.11.48.46 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 03 Nov 2012 11:48:48 -0700 (PDT) From: Blue Swirl To: qemu-devel@nongnu.org Date: Sat, 3 Nov 2012 18:48:35 +0000 Message-Id: <3e13749eef6fbeef0651adb2b26e088cb5289dd9.1351968499.git.blauwirbel@gmail.com> X-Mailer: git-send-email 1.7.2.5 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.217.173 Cc: blauwirbel@gmail.com, Aurelien Jarno Subject: [Qemu-devel] [PATCH] target-mips: use ULL for 64 bit constants 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 Fix build on a 32 bit host: CC mips-softmmu/target-mips/dsp_helper.o /src/qemu/target-mips/dsp_helper.c: In function 'helper_dextr_rs_w': /src/qemu/target-mips/dsp_helper.c:3556: error: integer constant is too large for 'long' type /src/qemu/target-mips/dsp_helper.c: In function 'helper_extr_s_h': /src/qemu/target-mips/dsp_helper.c:3656: error: integer constant is too large for 'long' type Signed-off-by: Blue Swirl --- target-mips/dsp_helper.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/target-mips/dsp_helper.c b/target-mips/dsp_helper.c index b59133e..e7949c2 100644 --- a/target-mips/dsp_helper.c +++ b/target-mips/dsp_helper.c @@ -3553,7 +3553,7 @@ target_ulong helper_dextr_rs_w(target_ulong ac, target_ulong shift, if (temp128 == 0) { temp[0] = 0x0FFFFFFFF; } else { - temp[0] = 0x0100000000; + temp[0] = 0x0100000000ULL; } set_DSPControl_overflow_flag(1, 23, env); } @@ -3653,7 +3653,7 @@ target_ulong helper_extr_s_h(target_ulong ac, target_ulong shift, if (temp > (int64_t)0x7FFF) { temp = 0x00007FFF; set_DSPControl_overflow_flag(1, 23, env); - } else if (temp < (int64_t)0xFFFFFFFFFFFF8000) { + } else if (temp < (int64_t)0xFFFFFFFFFFFF8000ULL) { temp = 0xFFFF8000; set_DSPControl_overflow_flag(1, 23, env); }