[PATCH] target-arm: remove unused functions cpu_lock(), cpu_unlock()
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 19 Nov 2010 13:54:44 +0000 (13:54 +0000)
committerRiku Voipio <riku.voipio@nokia.com>
Fri, 3 Dec 2010 13:09:38 +0000 (15:09 +0200)
Signed-off-by: Riku Voipio <riku.voipio@nokia.com>
target-arm/cpu.h
target-arm/op_helper.c

index b87c605f7f7e63e1419ce2fd85d4d860d53dc699..0284bad0f932c4bc51840aed25e5b21fc31501c2 100644 (file)
@@ -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;
index 9b1a0143d24e2ca5e0822d039939f80da7e30df6..43baa6300671c0ac077bdd94028b91f8d676449b 100644 (file)
@@ -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)
 {