From patchwork Fri Feb 17 15:43:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pranith Kumar X-Patchwork-Id: 9580181 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 13894600C5 for ; Fri, 17 Feb 2017 15:43:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0640C2871F for ; Fri, 17 Feb 2017 15:43:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EF53628722; Fri, 17 Feb 2017 15:43:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9290028721 for ; Fri, 17 Feb 2017 15:43:47 +0000 (UTC) Received: from localhost ([::1]:54357 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cekhG-0000JS-M5 for patchwork-qemu-devel@patchwork.kernel.org; Fri, 17 Feb 2017 10:43:46 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cekgn-0000Hs-E4 for qemu-devel@nongnu.org; Fri, 17 Feb 2017 10:43:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cekgj-0007Lt-Fm for qemu-devel@nongnu.org; Fri, 17 Feb 2017 10:43:17 -0500 Received: from mail-yw0-x244.google.com ([2607:f8b0:4002:c05::244]:35724) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cekgj-0007Li-An for qemu-devel@nongnu.org; Fri, 17 Feb 2017 10:43:13 -0500 Received: by mail-yw0-x244.google.com with SMTP id l16so3513274ywb.2 for ; Fri, 17 Feb 2017 07:43:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=DbWK6BfOREoF8ku6OnjMXUeOcCZDuBDIoi2Cm8g0Vrg=; b=Lix5OI5XwWA6qefB8kU9wK9/gqObWG6blQhesAdv/w19VLEdtmyXAeZ0oP+Y7I2DXX OdRTJ+fUunclGQ27J/aE4Qw8zC3cZ3pcvRdEsWyrx+B+d1l5zKH03whJc0xAAAtrPz4D ZBB/IwKm0O1hyx6oPovDWfAdRte/b6j0Onhx5LhAfu4Q7nNSYjHWtd4fPpf2amyjycq8 JdFW+3PItcSnolM2v6UFSbQA5vCaOTguozLmfNt44qa4HQufrVl81bmk/5nZpMJgyZ4U g58nunOkt6Me1slVwLvNnHtRTlk1YKasAzMjvtHeXlJUPwO7TWY/HnaSVfbCsZKS+3z9 KCsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=DbWK6BfOREoF8ku6OnjMXUeOcCZDuBDIoi2Cm8g0Vrg=; b=FQPbfUUrZEJwockeh5JOXXmNH9jo2hDKFAOqMA4HLP22ZlDpXPLxYSwVdOgkuRFVKO mRNyLM+E6Jpt58234pQVoU+WbfNFNy46fwsz58cP4UsYRhqDxmoLnXxnjCewVpjqKPsj MZ/OPrtnyK5+d41hqC7BRlsDvh0iiA6eG+jajdaLCSsG/5b42wAIJnPMXAafllszOOiU w+vulToCF2HfV9Vjifa/HyeBneh49jArqLTpZBs1HGScU3zT9OJYGu0a/1ERzNLnIhv0 cij+KBrqjvDoXhwYqp8RxSWcikWiUgLd2bb1Zc1y0VBntpNr0mmsnLc6ALhAtl7K5JB/ wMqA== X-Gm-Message-State: AMke39lK2R4cdpVi7S6D0Bacwn6KnKcgvoXl+5KGdJAdD0ZsbJHdsWRnm3ljrEMhUfg2Bg== X-Received: by 10.129.99.198 with SMTP id x189mr6099229ywb.242.1487346192605; Fri, 17 Feb 2017 07:43:12 -0800 (PST) Received: from localhost.localdomain (c-73-207-178-95.hsd1.ga.comcast.net. [73.207.178.95]) by smtp.gmail.com with ESMTPSA id a136sm3882649ywh.58.2017.02.17.07.43.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Feb 2017 07:43:11 -0800 (PST) From: Pranith Kumar To: alex.bennee@linaro.org Date: Fri, 17 Feb 2017 10:43:11 -0500 Message-Id: <20170217154311.13920-1-bobby.prani@gmail.com> X-Mailer: git-send-email 2.11.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4002:c05::244 Subject: [Qemu-devel] [PATCH RESEND] aarch64: Change ext type to TCGType to fix warnings X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, qemu-devel@nongnu.org, rth@twiddle.net Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP To fix the following warnings: In file included from /users/pranith/qemu/tcg/tcg.c:255: /users/pranith/qemu/tcg/aarch64/tcg-target.inc.c:879:24: warning: implicit conversion from enumeration type 'TCGMemOp' (aka 'enum TCGMemOp') to different enumeration type 'TCGType' (aka 'enum TCGType') [-Wenum-conversion] tcg_out_cmp(s, ext, a, b, b_const); ~~~~~~~~~~~ ^~~ /users/pranith/qemu/tcg/aarch64/tcg-target.inc.c:893:36: warning: implicit conversion from enumeration type 'TCGMemOp' (aka 'enum TCGMemOp') to different enumeration type 'TCGType' (aka 'enum TCGType') [-Wenum-conversion] tcg_out_insn(s, 3201, CBZ, ext, a, offset); ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /users/pranith/qemu/tcg/aarch64/tcg-target.inc.c:389:65: note: expanded from macro 'tcg_out_insn' glue(tcg_out_insn_,FMT)(S, glue(glue(glue(I,FMT),_),OP), ## __VA_ARGS__) ^ /users/pranith/qemu/tcg/aarch64/tcg-target.inc.c:895:37: warning: implicit conversion from enumeration type 'TCGMemOp' (aka 'enum TCGMemOp') to different enumeration type 'TCGType' (aka 'enum TCGType') [-Wenum-conversion] tcg_out_insn(s, 3201, CBNZ, ext, a, offset); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /users/pranith/qemu/tcg/aarch64/tcg-target.inc.c:389:65: note: expanded from macro 'tcg_out_insn' glue(tcg_out_insn_,FMT)(S, glue(glue(glue(I,FMT),_),OP), ## __VA_ARGS__) ^ /users/pranith/qemu/tcg/aarch64/tcg-target.inc.c:1610:27: warning: implicit conversion from enumeration type 'TCGType' (aka 'enum TCGType') to different enumeration type 'TCGMemOp' (aka 'enum TCGMemOp') [-Wenum-conversion] tcg_out_brcond(s, ext, a2, a0, a1, const_args[1], arg_label(args[3])); ~~~~~~~~~~~~~~ ^~~ Signed-off-by: Pranith Kumar --- tcg/aarch64/tcg-target.inc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tcg/aarch64/tcg-target.inc.c b/tcg/aarch64/tcg-target.inc.c index 6d227a5a6a..290de6dae6 100644 --- a/tcg/aarch64/tcg-target.inc.c +++ b/tcg/aarch64/tcg-target.inc.c @@ -866,7 +866,7 @@ static inline void tcg_out_goto_label(TCGContext *s, TCGLabel *l) } } -static void tcg_out_brcond(TCGContext *s, TCGMemOp ext, TCGCond c, TCGArg a, +static void tcg_out_brcond(TCGContext *s, TCGType ext, TCGCond c, TCGArg a, TCGArg b, bool b_const, TCGLabel *l) { intptr_t offset; @@ -937,7 +937,7 @@ static void tcg_out_addsubi(TCGContext *s, int ext, TCGReg rd, } } -static inline void tcg_out_addsub2(TCGContext *s, int ext, TCGReg rl, +static inline void tcg_out_addsub2(TCGContext *s, TCGType ext, TCGReg rl, TCGReg rh, TCGReg al, TCGReg ah, tcg_target_long bl, tcg_target_long bh, bool const_bl, bool const_bh, bool sub)