From patchwork Tue May 29 10:50:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 10435025 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 2B3D1602BF for ; Tue, 29 May 2018 11:24:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1A064286DE for ; Tue, 29 May 2018 11:24:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0E838286EC; Tue, 29 May 2018 11:24:41 +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=-3.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, FSL_HELO_FAKE, MAILING_LIST_MULTI, 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 68239286DE for ; Tue, 29 May 2018 11:24:40 +0000 (UTC) Received: from localhost ([::1]:60280 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNck3-0001Q8-DX for patchwork-qemu-devel@patchwork.kernel.org; Tue, 29 May 2018 07:24:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37256) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fNcDj-0001zN-5B for qemu-devel@nongnu.org; Tue, 29 May 2018 06:51:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fNcDe-0004Lb-So for qemu-devel@nongnu.org; Tue, 29 May 2018 06:51:15 -0400 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:36592) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fNcDe-0004L4-MT for qemu-devel@nongnu.org; Tue, 29 May 2018 06:51:10 -0400 Received: by mail-wm0-x234.google.com with SMTP id v131-v6so20051229wma.1 for ; Tue, 29 May 2018 03:51:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=EPXMHzWKqaEXhQn1ScZ+BaAab5LKhT+XVeFW/6oU/4g=; b=Lf00lv67a7ccwAT+3d5TcVmye9D1tdCC2ccbqAhqCuGpksIGlA4PVbUvtB7AaQZJ69 CRKhKs+H7P19hswl+enqp/OGzdBBcEsvQ1a/y1fvBN55NooxTyZkQvXdDd8xq58BBVy5 OCD/wC2W2TN5RUJeEPXi9M9pwCqYirJHK8mSD9T9eAzAsi/EWZm+DUOee4xjuz7DH1Tw gp2Ve8aDR7syfBxN6ppkdDhd4wMmCBny7HX0JCE9banJ/cXx5bCpJPtc/U9bBLETRcz0 WlP6JeHFymL4hVVJMyj1Aw7MXWvcOqtMR86AJjqpKzV73jDYazyNgAWSZUcBYQvRMNL4 ojHg== 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:in-reply-to :references; bh=EPXMHzWKqaEXhQn1ScZ+BaAab5LKhT+XVeFW/6oU/4g=; b=mQ+aW4O4fuYz53v8BAFdW5KCBHWC4CULcRahErTfBJSjOifKXrpfqH9NhkL+7bojl/ UDEHQfX7SfWt3ZDx3fbsy3JK9EXBQ9QWSppX1QDooKxdo1xok4h6qJWhg/Vud8B6allP MqAqwrX0JCdtNERC5LSOn4bchXFRzzkU14kBVU6EzPASC8cRCULwAtyUpf7tidnIDThJ iw/XynUlNcScKs481g1uEUK1K3yOw+ouDbju1Jn6IBusDkwD3QCILBUorRcQnWNj/ZdZ 1UzPfc8+dPVWFJXIXRqnJB6z4r+tigYlXWlUUA2bP95fX4ckBJOxw4EIcyljXZipY6rn 5opw== X-Gm-Message-State: ALKqPwe4SnSrEj1/ngAiVQp4OvtExA5Tp38qkF3tVITbGTeTpV2zoUMI DJZ4WXPEz0+ui7eSm0HDAtQHNw== X-Google-Smtp-Source: AB8JxZrQYYIza/0a9Wudb8TfPtdtiuR9bYAkh7oudOEXADvC0zuzY5VEqr8oYg9ALIKYxsqRLkTiSg== X-Received: by 2002:a2e:9756:: with SMTP id f22-v6mr10967060ljj.111.1527591069371; Tue, 29 May 2018 03:51:09 -0700 (PDT) Received: from gmail.com (81-231-232-130-no39.tbcn.telia.com. [81.231.232.130]) by smtp.gmail.com with ESMTPSA id o8-v6sm2319877lji.0.2018.05.29.03.51.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 29 May 2018 03:51:08 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Date: Tue, 29 May 2018 12:50:07 +0200 Message-Id: <20180529105011.1914-35-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180529105011.1914-1-edgar.iglesias@gmail.com> References: <20180529105011.1914-1-edgar.iglesias@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::234 Subject: [Qemu-devel] [PULL v1 34/38] target-microblaze: Remove argument b in eval_cc() 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: edgar.iglesias@xilinx.com, peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: "Edgar E. Iglesias" Remove argument b in eval_cc() as it is always set to zero. No functional change. Reviewed-by: Richard Henderson Signed-off-by: Edgar E. Iglesias --- target/microblaze/translate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target/microblaze/translate.c b/target/microblaze/translate.c index 092e182c2f..d870cb7c43 100644 --- a/target/microblaze/translate.c +++ b/target/microblaze/translate.c @@ -1143,7 +1143,7 @@ static void dec_store(DisasContext *dc) } static inline void eval_cc(DisasContext *dc, unsigned int cc, - TCGv_i32 d, TCGv_i32 a, TCGv_i32 b) + TCGv_i32 d, TCGv_i32 a) { static const int mb_to_tcg_cc[] = { [CC_EQ] = TCG_COND_EQ, @@ -1161,7 +1161,7 @@ static inline void eval_cc(DisasContext *dc, unsigned int cc, case CC_LE: case CC_GE: case CC_GT: - tcg_gen_setcond_i32(mb_to_tcg_cc[cc], d, a, b); + tcg_gen_setcondi_i32(mb_to_tcg_cc[cc], d, a, 0); break; default: cpu_abort(CPU(dc->cpu), "Unknown condition code %x.\n", cc); @@ -1207,7 +1207,7 @@ static void dec_bcc(DisasContext *dc) tcg_gen_movi_i32(env_btarget, dc->pc); tcg_gen_add_i32(env_btarget, env_btarget, *(dec_alu_op_b(dc))); } - eval_cc(dc, cc, env_btaken, cpu_R[dc->ra], tcg_const_i32(0)); + eval_cc(dc, cc, env_btaken, cpu_R[dc->ra]); } static void dec_br(DisasContext *dc)