From patchwork Tue May 8 17:31:49 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: 10386821 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 54B2E602C2 for ; Tue, 8 May 2018 18:03:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F44A28EA5 for ; Tue, 8 May 2018 18:03:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 33B1928ECF; Tue, 8 May 2018 18:03:17 +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=-4.0 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 970DC28EA5 for ; Tue, 8 May 2018 18:03:16 +0000 (UTC) Received: from localhost ([::1]:52732 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fG6xH-0005YW-Ed for patchwork-qemu-devel@patchwork.kernel.org; Tue, 08 May 2018 14:03:15 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44295) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fG6To-0000JA-Lh for qemu-devel@nongnu.org; Tue, 08 May 2018 13:32:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fG6Tm-0005bx-J5 for qemu-devel@nongnu.org; Tue, 08 May 2018 13:32:48 -0400 Received: from mail-lf0-x243.google.com ([2a00:1450:4010:c07::243]:36899) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fG6Tm-0005bk-An for qemu-devel@nongnu.org; Tue, 08 May 2018 13:32:46 -0400 Received: by mail-lf0-x243.google.com with SMTP id r2-v6so10919858lff.4 for ; Tue, 08 May 2018 10:32:46 -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=nvC+msu7UEfk4XjAJ6dmGpW5wynomZoL5hPSgPbG4J8=; b=AuVy1yfo0Nm1i/C5D6i1pf0+AHPkydC9z2w7ixKcVXQGCCcHdV9qRqAkmcEwERzvUp Ng1d3mEyu56oRi/ueiuREMBlDyr/Iajx3hGjRZqN6ED4RoBanXJ5JgutjJw89lcuOHxy Au7WFBhOtAIHx9Cho79Y12hy5PuXBVO4qyOJdFIwxbxw8m5+vMnyP/3bTTt9eVXl/o3v 8z5MFgXnJGs/BaiemvbZjvGAajI4Xk/gb6CdcUKnsaA+sGJx3ejzF7Jv/yBcit7jqxJj 9O05gliy0i74eQ6CoS+9s3U6wel8d7wKmvVM3/x2oH0tKwErH4uv+6cawrl1zQf9arAk NNAw== 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=nvC+msu7UEfk4XjAJ6dmGpW5wynomZoL5hPSgPbG4J8=; b=DmusWDaLWau1w4vn/54p72ovXN1R9SPO/09yxiIt/6DgLTLGPHwGvMWmBz5kdX7n/S OrAkDWELcTWbFo6dyBmVhZjmyF00UkSywDI57OBjJeB2nTYN9iFQqETWChQsjRo+6i55 jKclr8iUx4M1hMNoTMD4SwcDfIt+BwHv52jRvGifKK5HooBzRSF44khwyPaXWJK71TV5 l7Um8E9L8xLKC5dcM5as+jJLxHd2nIRor9fMJ/pSNHdW+CqrElO+J6/W4YqS2qQ1kj7G RdHJOVsYSf4QO16c+j7eM+/Q/ecUGNm1g+QZ2hyaKyaq4JT/wCvNLB7uw1iGEDzQChrO bmVQ== X-Gm-Message-State: ALKqPwdP3TXz3eub2X8Ax8+B+QR8fBNB45HcsT1kTGUFYwvA5X8J3dXI La7nmwFO7XfZ9eJlGGggYywU8g== X-Google-Smtp-Source: AB8JxZqd/Mqn0uBp8c9w3Hpk8nlr/IWEAsNOBzo845pEXZq/BsjfFoSTWd9rSBsY8aj3yHaSAlkPgw== X-Received: by 2002:a2e:7f02:: with SMTP id a2-v6mr6671744ljd.14.1525800764859; Tue, 08 May 2018 10:32:44 -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 u2-v6sm5435803lfu.3.2018.05.08.10.32.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 08 May 2018 10:32:43 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Date: Tue, 8 May 2018 19:31:49 +0200 Message-Id: <20180508173152.29327-34-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180508173152.29327-1-edgar.iglesias@gmail.com> References: <20180508173152.29327-1-edgar.iglesias@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::243 Subject: [Qemu-devel] [PATCH v2 33/36] 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, sai.pavan.boddu@xilinx.com, frasse.iglesias@gmail.com, alistair@alistair23.me, richard.henderson@linaro.org, frederic.konrad@adacore.com 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. Signed-off-by: Edgar E. Iglesias Reviewed-by: Richard Henderson --- 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 231a66e77d..77ef21a708 100644 --- a/target/microblaze/translate.c +++ b/target/microblaze/translate.c @@ -1139,7 +1139,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, @@ -1157,7 +1157,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); @@ -1203,7 +1203,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)