From patchwork Tue Jun 24 16:09:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 32440 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f199.google.com (mail-ve0-f199.google.com [209.85.128.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4E78F201EF for ; Tue, 24 Jun 2014 16:23:30 +0000 (UTC) Received: by mail-ve0-f199.google.com with SMTP id oy12sf1011481veb.2 for ; Tue, 24 Jun 2014 09:23:30 -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=YVkciGfUEXlndZ72nSEq+lpaGDkqMKxGYu7uE6CRICo=; b=bPO48QKNPLGph+gX9vwX3/Eb/lOSzgTKeDRs9lATWDMlLQUjmvL54lceIzg+4nS5S2 ttM23XghEsG0oXnxHLOcObN6047J+ouvmg47+qqpRx8KnBqlSVRnn1FQ4fzS55ywGj/7 P2bOr83Ed2uaLyesyap3PLdrBS2twDqKuHAzo1SoBhw3zZuZ7MrmGIgNRgr+CRY1eI4T 1piFUvMRtE+k9YvCLcdZv2AadFqb4BdBvyKSSIjTplaVpbKliFaQ5SVxBmRiY209rRcX 4T2Ip1opJk2MPcRoMs2DimpH1fuHaEZ7cvK7Tfu3rwzjwUKtPaYrPPJm3xbNtWAdyw6Y 0JlQ== X-Gm-Message-State: ALoCoQl28A83A4YL82vs4Pu5nwlyfyGwtB/H6oiovjGvSqSNMylPQQUmwVN7/cIAM9Ef0a8VD7bo X-Received: by 10.58.146.227 with SMTP id tf3mr967846veb.14.1403627010135; Tue, 24 Jun 2014 09:23:30 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.27.131 with SMTP id 3ls2440053qgx.9.gmail; Tue, 24 Jun 2014 09:23:30 -0700 (PDT) X-Received: by 10.52.163.208 with SMTP id yk16mr1424208vdb.36.1403627010060; Tue, 24 Jun 2014 09:23:30 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id xt7si500633veb.104.2014.06.24.09.23.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 24 Jun 2014 09:23:30 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id id10so569588vcb.30 for ; Tue, 24 Jun 2014 09:23:29 -0700 (PDT) X-Received: by 10.53.8.162 with SMTP id dl2mr1437145vdd.24.1403627009957; Tue, 24 Jun 2014 09:23:29 -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 tc5csp224031vcb; Tue, 24 Jun 2014 09:23:29 -0700 (PDT) X-Received: by 10.140.48.161 with SMTP id o30mr3252186qga.68.1403627009478; Tue, 24 Jun 2014 09:23:29 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id g4si1012501qgg.20.2014.06.24.09.23.29 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 24 Jun 2014 09:23:29 -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]:60886 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzTVJ-0005ox-4A for patch@linaro.org; Tue, 24 Jun 2014 12:23:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56168) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzTRQ-0007aC-Lh for qemu-devel@nongnu.org; Tue, 24 Jun 2014 12:19:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzTRG-0001OY-Q7 for qemu-devel@nongnu.org; Tue, 24 Jun 2014 12:19:28 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:44117) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzTRG-0001Nv-IU; Tue, 24 Jun 2014 12:19:18 -0400 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id EE30844084; Tue, 24 Jun 2014 20:19:16 +0400 (MSK) Received: from tls.msk.ru (mjt.vpn.tls.msk.ru [192.168.177.99]) by tsrv.corpit.ru (Postfix) with SMTP id 51BA46BB; Tue, 24 Jun 2014 20:09:23 +0400 (MSK) Received: (nullmailer pid 15630 invoked by uid 1000); Tue, 24 Jun 2014 16:09:21 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Date: Tue, 24 Jun 2014 20:09:16 +0400 Message-Id: <1403626160-15546-11-git-send-email-mjt@msgid.tls.msk.ru> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1403626160-15546-1-git-send-email-mjt@msgid.tls.msk.ru> References: <1403626160-15546-1-git-send-email-mjt@msgid.tls.msk.ru> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 86.62.121.231 Cc: qemu-trivial@nongnu.org, Peter Maydell , Michael Tokarev Subject: [Qemu-devel] [PULL 10/14] target-unicore: Remove unused functions 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: mjt@tls.msk.ru 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.171 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 From: Peter Maydell The functions gen_st64, gen_ld64, gen_mulxy, ucf64_itod and ucf64_dtoi are all unused; remove them. Signed-off-by: Peter Maydell Signed-off-by: Michael Tokarev --- target-unicore32/translate.c | 28 ---------------------------- target-unicore32/ucf64_helper.c | 22 ---------------------- 2 files changed, 50 deletions(-) diff --git a/target-unicore32/translate.c b/target-unicore32/translate.c index 5a8c7c8..e3643c2 100644 --- a/target-unicore32/translate.c +++ b/target-unicore32/translate.c @@ -576,13 +576,6 @@ static inline TCGv gen_ld32(TCGv addr, int index) return tmp; } -static inline TCGv_i64 gen_ld64(TCGv addr, int index) -{ - TCGv_i64 tmp = tcg_temp_new_i64(); - tcg_gen_qemu_ld64(tmp, addr, index); - return tmp; -} - static inline void gen_st8(TCGv val, TCGv addr, int index) { tcg_gen_qemu_st8(val, addr, index); @@ -601,12 +594,6 @@ static inline void gen_st32(TCGv val, TCGv addr, int index) dead_tmp(val); } -static inline void gen_st64(TCGv_i64 val, TCGv addr, int index) -{ - tcg_gen_qemu_st64(val, addr, index); - tcg_temp_free_i64(val); -} - static inline void gen_set_pc_im(uint32_t val) { tcg_gen_movi_i32(cpu_R[31], val); @@ -1128,21 +1115,6 @@ static inline void gen_jmp(DisasContext *s, uint32_t dest) } } -static inline void gen_mulxy(TCGv t0, TCGv t1, int x, int y) -{ - if (x) { - tcg_gen_sari_i32(t0, t0, 16); - } else { - gen_sxth(t0); - } - if (y) { - tcg_gen_sari_i32(t1, t1, 16); - } else { - gen_sxth(t1); - } - tcg_gen_mul_i32(t0, t0, t1); -} - /* Returns nonzero if access to the PSR is not permitted. Marks t0 as dead. */ static int gen_set_psr(DisasContext *s, uint32_t mask, int bsr, TCGv t0) { diff --git a/target-unicore32/ucf64_helper.c b/target-unicore32/ucf64_helper.c index 0c7ea26..5af008f 100644 --- a/target-unicore32/ucf64_helper.c +++ b/target-unicore32/ucf64_helper.c @@ -290,28 +290,6 @@ static inline uint32_t ucf64_stoi(float32 s) return v.i; } -static inline float64 ucf64_itod(uint64_t i) -{ - union { - uint64_t i; - float64 d; - } v; - - v.i = i; - return v.d; -} - -static inline uint64_t ucf64_dtoi(float64 d) -{ - union { - uint64_t i; - float64 d; - } v; - - v.d = d; - return v.i; -} - /* Integer to float conversion. */ float32 HELPER(ucf64_si2sf)(float32 x, CPUUniCore32State *env) {