From patchwork Tue Dec 23 22:24:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 42615 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 187A22188F for ; Tue, 23 Dec 2014 22:25:35 +0000 (UTC) Received: by mail-wg0-f71.google.com with SMTP id l18sf4454143wgh.2 for ; Tue, 23 Dec 2014 14:25:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list; bh=MirliE50scdE/rhAWryOrDxzHpeBgvJOFrQ0jHc73cY=; b=EXJjvyJlhz2bubIbDdJ4HMKghBUThC3szLcYM7OZ+5CzxsdJCm5GQH8zNFP/apDq+J Pi6L1Cl9SzJTF0YBDmyM9MK7v5nzZEQ31NtvZ/wxGU972pHNR8p59/SyQdNOblSPWc59 GJPtLykkpUaoLsFZHq8U0gSzGBFKrr5repPXi3WG4T2ure3dUpTOv6eInK5rnkbzDs37 m9zUeKPs0NmLZnFCLceE8hawGd5ZvWb7lmVjofeNBhsRqf8s32ULc05Rsp15fRscVZrn YApGEI0aMybFrjhKsgqCwRx5Ey5BWj+4Mp7OijuyWrBoqdw58OFiDHmk2H1ajPJzSD9n UVyg== X-Gm-Message-State: ALoCoQmu1nNly/DhhrmgAJPlAztzdapGKh9+0W5T+/Avplsav8teSejVELiOKmmzD97UZnpQHYY7 X-Received: by 10.152.42.196 with SMTP id q4mr6677lal.6.1419373534351; Tue, 23 Dec 2014 14:25:34 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.50 with SMTP id u18ls1695949laz.96.gmail; Tue, 23 Dec 2014 14:25:34 -0800 (PST) X-Received: by 10.152.23.98 with SMTP id l2mr30571952laf.46.1419373534143; Tue, 23 Dec 2014 14:25:34 -0800 (PST) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com. [209.85.215.49]) by mx.google.com with ESMTPS id li10si12228644lab.112.2014.12.23.14.25.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 23 Dec 2014 14:25:34 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by mail-la0-f49.google.com with SMTP id hs14so6263756lab.36 for ; Tue, 23 Dec 2014 14:25:34 -0800 (PST) X-Received: by 10.112.41.234 with SMTP id i10mr31297363lbl.25.1419373533976; Tue, 23 Dec 2014 14:25:33 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.142.69 with SMTP id ru5csp1461120lbb; Tue, 23 Dec 2014 14:25:33 -0800 (PST) X-Received: by 10.224.95.7 with SMTP id b7mr49965337qan.70.1419373532508; Tue, 23 Dec 2014 14:25:32 -0800 (PST) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 65si24829083qgx.47.2014.12.23.14.25.31 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 23 Dec 2014 14:25:32 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:46435 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3XtT-0006bf-Ib for patch@linaro.org; Tue, 23 Dec 2014 17:25:31 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3XsB-0004je-TO for qemu-devel@nongnu.org; Tue, 23 Dec 2014 17:24:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y3XsA-0000pX-2w for qemu-devel@nongnu.org; Tue, 23 Dec 2014 17:24:11 -0500 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:54637) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3Xs9-0000pO-TB for qemu-devel@nongnu.org; Tue, 23 Dec 2014 17:24:10 -0500 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1Y3Xs9-0004fB-1J; Tue, 23 Dec 2014 22:24:09 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Date: Tue, 23 Dec 2014 22:24:09 +0000 Message-Id: <1419373449-17900-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:8b0:1d0::1 Cc: Bastian Koppelmann Subject: [Qemu-devel] [PATCH] target-tricore: Add missing ULL suffix on 64 bit constant 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Add a missing ULL suffix to a 64 bit constant: this suppresses a compiler warning from mingw32 gcc. Signed-off-by: Peter Maydell --- target-tricore/op_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-tricore/op_helper.c b/target-tricore/op_helper.c index 13e2729..5704549 100644 --- a/target-tricore/op_helper.c +++ b/target-tricore/op_helper.c @@ -994,7 +994,7 @@ uint32_t helper_sha(CPUTriCoreState *env, target_ulong r1, target_ulong r2) } else if (shift_count > 0) { result = t1 << shift_count; /* calc carry */ - env->PSW_USB_C = ((result & 0xffffffff00000000) != 0); + env->PSW_USB_C = ((result & 0xffffffff00000000ULL) != 0); /* calc v */ env->PSW_USB_V = (((result > 0x7fffffffLL) || (result < -0x80000000LL)) << 31);