From patchwork Mon Jun 23 23:07:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 363229 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 5E5F914008F for ; Tue, 24 Jun 2014 09:09:11 +1000 (EST) Received: from localhost ([::1]:56381 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzDML-0003AQ-H2 for incoming@patchwork.ozlabs.org; Mon, 23 Jun 2014 19:09:09 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzDLI-0001JA-0h for qemu-devel@nongnu.org; Mon, 23 Jun 2014 19:08:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzDLF-0001vG-Gs for qemu-devel@nongnu.org; Mon, 23 Jun 2014 19:08:03 -0400 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:48702) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzDLF-0001v8-AK; Mon, 23 Jun 2014 19:08:01 -0400 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1WzDLD-0004AW-Ie; Tue, 24 Jun 2014 00:07:59 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Date: Tue, 24 Jun 2014 00:07:59 +0100 Message-Id: <1403564879-15999-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:8b0:1d0::1 Cc: qemu-trivial@nongnu.org, Guan Xuetao Subject: [Qemu-devel] [PATCH] 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+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org The functions gen_st64, gen_ld64, gen_mulxy, ucf64_itod and ucf64_dtoi are all unused; remove them. Signed-off-by: Peter Maydell --- 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) {