From patchwork Tue Sep 2 11:52:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 36454 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f197.google.com (mail-ig0-f197.google.com [209.85.213.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A369A203BE for ; Tue, 2 Sep 2014 11:53:52 +0000 (UTC) Received: by mail-ig0-f197.google.com with SMTP id r2sf35354151igi.0 for ; Tue, 02 Sep 2014 04:53:52 -0700 (PDT) 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:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=4zIwaIspOZlZ8gDsqPIwU2ZIwWc7aYyAcN4IaP3+w/o=; b=BllUUUK0aKqMJhlcV8fo7e9f5Cf7xUXqrLui6lo6cAZuXHrchneIbpD9vqoCub2Gqs 0rAMju1eF0itlicxEQ8UQbqu9s6l8n/gwQyMkT6yA2w0BZt5cx0bpiO3tQtcSvclQyk6 Lpidlbsx7+ZTEtj2xcBp8uDdWPaKRj4V7c0mar2tx/oQJicn0z/xTJINIFxZjrz0/V6V fY8UxSzluSg63FphRLNdn5rLyp/rUUc5XpXI09oeQsiJLrY1e4v1CUPLtA/uwkLXRcXe adHGstygcHTXA8PP2jrIdAYN6b/Dvqb5LYk/UbCrtrwH1R1dAdhOeByv16ZyKH2OhtA2 oq1A== X-Gm-Message-State: ALoCoQl8W95e1/9QNsJyaHmfwQUzaO5KDatKu7+etWUWWU2ITWnhbyTaObNxrrWTv+pxUiQNn7au X-Received: by 10.182.29.10 with SMTP id f10mr18501096obh.23.1409658832227; Tue, 02 Sep 2014 04:53:52 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.96.42 with SMTP id j39ls2472923qge.89.gmail; Tue, 02 Sep 2014 04:53:52 -0700 (PDT) X-Received: by 10.221.6.201 with SMTP id ol9mr29781721vcb.2.1409658832149; Tue, 02 Sep 2014 04:53:52 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id jx6si2122133vdb.102.2014.09.02.04.53.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 02 Sep 2014 04:53:52 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.175 as permitted sender) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id lf12so6720476vcb.20 for ; Tue, 02 Sep 2014 04:53:52 -0700 (PDT) X-Received: by 10.220.44.136 with SMTP id a8mr56455vcf.42.1409658832032; Tue, 02 Sep 2014 04:53:52 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp514785vcb; Tue, 2 Sep 2014 04:53:51 -0700 (PDT) X-Received: by 10.112.5.170 with SMTP id t10mr32399972lbt.64.1409658830905; Tue, 02 Sep 2014 04:53:50 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [81.2.115.146]) by mx.google.com with ESMTPS id ee2si4583269lbb.106.2014.09.02.04.53.50 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 02 Sep 2014 04:53:50 -0700 (PDT) Received-SPF: none (google.com: pm215@archaic.org.uk does not designate permitted sender hosts) client-ip=81.2.115.146; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1XOmdg-0007Jx-Vv; Tue, 02 Sep 2014 12:52:44 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Mark Cave-Ayland , Richard Henderson Subject: [PATCH v2 1/3] target-sparc: Remove unused gen_op_subi_cc and gen_op_addi_cc Date: Tue, 2 Sep 2014 12:52:42 +0100 Message-Id: <1409658764-28113-2-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1409658764-28113-1-git-send-email-peter.maydell@linaro.org> References: <1409658764-28113-1-git-send-email-peter.maydell@linaro.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.220.175 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The functions gen_op_addi_cc() and gen_op_subi_cc() are unused; remove them. Signed-off-by: Peter Maydell --- target-sparc/translate.c | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/target-sparc/translate.c b/target-sparc/translate.c index 78c4e21..62edf20 100644 --- a/target-sparc/translate.c +++ b/target-sparc/translate.c @@ -363,14 +363,6 @@ static inline void gen_mov_reg_C(TCGv reg, TCGv_i32 src) tcg_gen_andi_tl(reg, reg, 0x1); } -static inline void gen_op_addi_cc(TCGv dst, TCGv src1, target_long src2) -{ - tcg_gen_mov_tl(cpu_cc_src, src1); - tcg_gen_movi_tl(cpu_cc_src2, src2); - tcg_gen_addi_tl(cpu_cc_dst, cpu_cc_src, src2); - tcg_gen_mov_tl(dst, cpu_cc_dst); -} - static inline void gen_op_add_cc(TCGv dst, TCGv src1, TCGv src2) { tcg_gen_mov_tl(cpu_cc_src, src1); @@ -502,22 +494,6 @@ static void gen_op_addx_int(DisasContext *dc, TCGv dst, TCGv src1, } } -static inline void gen_op_subi_cc(TCGv dst, TCGv src1, target_long src2, DisasContext *dc) -{ - tcg_gen_mov_tl(cpu_cc_src, src1); - tcg_gen_movi_tl(cpu_cc_src2, src2); - if (src2 == 0) { - tcg_gen_mov_tl(cpu_cc_dst, src1); - tcg_gen_movi_i32(cpu_cc_op, CC_OP_LOGIC); - dc->cc_op = CC_OP_LOGIC; - } else { - tcg_gen_subi_tl(cpu_cc_dst, cpu_cc_src, src2); - tcg_gen_movi_i32(cpu_cc_op, CC_OP_SUB); - dc->cc_op = CC_OP_SUB; - } - tcg_gen_mov_tl(dst, cpu_cc_dst); -} - static inline void gen_op_sub_cc(TCGv dst, TCGv src1, TCGv src2) { tcg_gen_mov_tl(cpu_cc_src, src1);