From patchwork Wed May 16 18:51:42 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: 10404743 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 8B7056037D for ; Wed, 16 May 2018 19:18:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 79AFB28592 for ; Wed, 16 May 2018 19:18:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6BD8F2869A; Wed, 16 May 2018 19:18:57 +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 EB51F28592 for ; Wed, 16 May 2018 19:18:56 +0000 (UTC) Received: from localhost ([::1]:34556 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJ1wu-0008MR-5D for patchwork-qemu-devel@patchwork.kernel.org; Wed, 16 May 2018 15:18:56 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJ1XY-0003cK-90 for qemu-devel@nongnu.org; Wed, 16 May 2018 14:52:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJ1XX-00011b-Em for qemu-devel@nongnu.org; Wed, 16 May 2018 14:52:44 -0400 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]:41369) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJ1XX-00011H-7X for qemu-devel@nongnu.org; Wed, 16 May 2018 14:52:43 -0400 Received: by mail-wr0-x243.google.com with SMTP id g21-v6so2767893wrb.8 for ; Wed, 16 May 2018 11:52:43 -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=up2zhGYRv3EWsrOwfRBIssxqtpV3mRnaUHn2LVvaDEU=; b=DHHzZ/5RtGazbXWDKzxjWOWdii6SHFD9jH7oL4WRrRVrvcT2FOfyuV7dVYF6F28B9z NJufeNW0kvXf1TvXIKN8SoFZdycAcqHv55aOb5oLoKlgJGKVORv8X5MIhVldV38/UlnS FQR3bRKa/cyQVb8C6+Ly154Doz0GdE0hkWV31BpUg2j1hfEsh4BIBWoS5S09O/XR90HU RcQtMVu+LrurB0JGeIAshAL+v53LB084YvnbbCbhDjKXSjwtSPJ9zWPgIfapGWoTTsOT xQzLaNoBaE9cZ9He1S7bZiy0Y+smLfb7bw0AOjwJYUbB+QPnEfWT3NpO0mRFiPX0TFmr i9zQ== 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=up2zhGYRv3EWsrOwfRBIssxqtpV3mRnaUHn2LVvaDEU=; b=Z3DbD0oRp1QJAlhfokT/WUIHg1r+RLOkC0IaJ3MRoVwksh1X+j7SYZ7vQqDaO35IPf RxYUJaTTq6N9f+Xke6jwvByTpaorX9kUFF/q/7ZkP5uqD0bX6iNLlpkScyDYLuSaB0pb u96w0KNzGGI7I35XuLPWqQwlQm9xFdXgACf07F/oPTCwfDcfrKuSCh8s7OhpoMc2vt4p oIhGRB4HeJkK8L22EYkhKdGKgJtnIRh0Vvvkw+SNfi9DNmrA7tAjLAdHFW+yvhiBky8M kmWCa24n+obgDCBoM9f/NL572rNC7Er0ehWh1qcSVxtHlgwuzxRUNhTVNkE/JH2KNT8u 74EA== X-Gm-Message-State: ALKqPwdRYLjIjNnwAlvfhdlE9VxKXA2Mg9j1rP7u3aa8bttYM8ZY/Q9V qooVTUw6mNfNtnnWuWiqqb46wQ== X-Google-Smtp-Source: AB8JxZpK49Ozgcux/MXYSPoWeJN7EQ+RDZpTFG4QOPebnQg9og9+WPAmk+vFa0EglIV4eU3AU4BWtQ== X-Received: by 2002:a19:13ce:: with SMTP id 75-v6mr16361302lft.106.1526496761778; Wed, 16 May 2018 11:52:41 -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 o134-v6sm771210lfo.43.2018.05.16.11.52.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 May 2018 11:52:40 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Date: Wed, 16 May 2018 20:51:42 +0200 Message-Id: <20180516185146.30708-35-edgar.iglesias@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180516185146.30708-1-edgar.iglesias@gmail.com> References: <20180516185146.30708-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:c0c::243 Subject: [Qemu-devel] [PATCH v3 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, sstabellini@kernel.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. 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 ed0b6fa881..a35683c8c9 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)