From patchwork Fri Dec 3 13:36:28 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku@afflict.kos.to, Voipio@afflict.kos.to X-Patchwork-Id: 74138 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 6590BB7043 for ; Sat, 4 Dec 2010 00:43:36 +1100 (EST) Received: from localhost ([127.0.0.1]:42372 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POVvA-0005vk-RR for incoming@patchwork.ozlabs.org; Fri, 03 Dec 2010 08:43:32 -0500 Received: from [140.186.70.92] (port=60324 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POVod-0003oJ-QM for qemu-devel@nongnu.org; Fri, 03 Dec 2010 08:37:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1POVob-0008NU-TQ for qemu-devel@nongnu.org; Fri, 03 Dec 2010 08:36:47 -0500 Received: from afflict.kos.to ([92.243.29.197]:44030) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1POVob-0008MI-NA for qemu-devel@nongnu.org; Fri, 03 Dec 2010 08:36:45 -0500 Received: by afflict.kos.to (Postfix, from userid 1000) id 90F9D26672; Fri, 3 Dec 2010 13:36:43 +0000 (UTC) From: Riku@afflict.kos.to, Voipio@afflict.kos.to To: qemu-devel@nongnu.org Date: Fri, 3 Dec 2010 15:36:28 +0200 Message-Id: X-Mailer: git-send-email 1.6.5 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: Peter Maydell Subject: [Qemu-devel] [PATCH 01/16] [PATCH] target-arm: remove unused functions cpu_lock(), cpu_unlock() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Peter Maydell Signed-off-by: Riku Voipio --- target-arm/cpu.h | 2 -- target-arm/op_helper.c | 14 -------------- 2 files changed, 0 insertions(+), 16 deletions(-) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index b87c605..0284bad 100644 --- a/target-arm/cpu.h +++ b/target-arm/cpu.h @@ -227,8 +227,6 @@ int cpu_arm_handle_mmu_fault (CPUARMState *env, target_ulong address, int rw, int mmu_idx, int is_softmuu); #define cpu_handle_mmu_fault cpu_arm_handle_mmu_fault -void cpu_lock(void); -void cpu_unlock(void); static inline void cpu_set_tls(CPUARMState *env, target_ulong newtls) { env->cp15.c13_tls2 = newtls; diff --git a/target-arm/op_helper.c b/target-arm/op_helper.c index 9b1a014..43baa63 100644 --- a/target-arm/op_helper.c +++ b/target-arm/op_helper.c @@ -28,20 +28,6 @@ void raise_exception(int tt) cpu_loop_exit(); } -/* thread support */ - -static spinlock_t global_cpu_lock = SPIN_LOCK_UNLOCKED; - -void cpu_lock(void) -{ - spin_lock(&global_cpu_lock); -} - -void cpu_unlock(void) -{ - spin_unlock(&global_cpu_lock); -} - uint32_t HELPER(neon_tbl)(uint32_t ireg, uint32_t def, uint32_t rn, uint32_t maxindex) {