From patchwork Mon Jun 23 23:01:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 32398 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f70.google.com (mail-yh0-f70.google.com [209.85.213.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 08C5820540 for ; Mon, 23 Jun 2014 23:10:13 +0000 (UTC) Received: by mail-yh0-f70.google.com with SMTP id a41sf28181942yho.1 for ; Mon, 23 Jun 2014 16:10:13 -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:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=+Z/tXkWlTfPr73+rUIT9/h1yUZzUTdIUZrJna6YMFpk=; b=iWUV8Tn71scHQC8Kz+2LYJ+4sElcIP5RrmPCHAMipo0KDnlm8Dz5yUQknyc/rceLgd pfP2F5GhMRJaXD9IYXN/V9roY6gqq5ByIouNcMZnRvR3Ya+PlucmAYaCHpMkaSf2JXSY 8++noVgbVFT3dd0U0LW2J7pNqW291VAs2xEYT/oKse6kA5I0WhbrnT1m/UFuI4Qx2AOc ttAZfybK411/RFgwnko4g4slIbE2dzEuI9BAvqyYl11a+H1trNtn7dISmswy2MWPkpP3 DmpjQW+3lv1w4zEaiRljNvId6sPTdwUevReWabX3nERG5clnWMkc85EvLywUl++YN7z3 eljQ== X-Gm-Message-State: ALoCoQnyLP0bLdiBcSb/REgjerH+TBFyggZ0woUMHiaI6ZpPL+iECIXb1CXi56jaNSV4nJq5yMNh X-Received: by 10.58.46.79 with SMTP id t15mr6428951vem.35.1403565013664; Mon, 23 Jun 2014 16:10:13 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.20.5 with SMTP id 5ls732476qgi.98.gmail; Mon, 23 Jun 2014 16:10:13 -0700 (PDT) X-Received: by 10.52.244.138 with SMTP id xg10mr4885961vdc.40.1403565013569; Mon, 23 Jun 2014 16:10:13 -0700 (PDT) Received: from mail-ve0-f170.google.com (mail-ve0-f170.google.com [209.85.128.170]) by mx.google.com with ESMTPS id qk6si9751474vdb.68.2014.06.23.16.10.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 23 Jun 2014 16:10:13 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.170 as permitted sender) client-ip=209.85.128.170; Received: by mail-ve0-f170.google.com with SMTP id i13so6791634veh.1 for ; Mon, 23 Jun 2014 16:10:13 -0700 (PDT) X-Received: by 10.220.92.193 with SMTP id s1mr5801334vcm.34.1403565013489; Mon, 23 Jun 2014 16:10:13 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp164358vcb; Mon, 23 Jun 2014 16:10:13 -0700 (PDT) X-Received: by 10.224.26.18 with SMTP id b18mr26085459qac.20.1403565013111; Mon, 23 Jun 2014 16:10:13 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id s6si495062qcm.35.2014.06.23.16.10.13 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 23 Jun 2014 16:10:13 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:56386 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzDNM-0004N0-Jp for patch@linaro.org; Mon, 23 Jun 2014 19:10:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzDMi-0003gj-L9 for qemu-devel@nongnu.org; Mon, 23 Jun 2014 19:09:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzDMh-0002XT-RY for qemu-devel@nongnu.org; Mon, 23 Jun 2014 19:09:32 -0400 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:48704) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzDMh-0002XO-L3 for qemu-devel@nongnu.org; Mon, 23 Jun 2014 19:09:31 -0400 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1WzDEx-00044a-Su; Tue, 24 Jun 2014 00:01:31 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Date: Tue, 24 Jun 2014 00:01:29 +0100 Message-Id: <1403564491-15624-3-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1403564491-15624-1-git-send-email-peter.maydell@linaro.org> References: <1403564491-15624-1-git-send-email-peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:8b0:1d0::1 Cc: Blue Swirl , Mark Cave-Ayland , Richard Henderson Subject: [Qemu-devel] [PATCH 1/3] target-sparc: Remove unused gen_op_subi_cc and gen_op_addi_cc X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.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.128.170 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 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 1ab07a1..b19673a 100644 --- a/target-sparc/translate.c +++ b/target-sparc/translate.c @@ -360,14 +360,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); @@ -499,22 +491,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);