mirror of https://github.com/xemu-project/xemu.git
target-sparc: remove unused functions cpu_lock(), cpu_unlock()
This commit is contained in:
parent
3a807decfa
commit
ef5e4ea587
|
@ -444,8 +444,6 @@ CPUSPARCState *cpu_sparc_init(const char *cpu_model);
|
||||||
void cpu_sparc_set_id(CPUSPARCState *env, unsigned int cpu);
|
void cpu_sparc_set_id(CPUSPARCState *env, unsigned int cpu);
|
||||||
void sparc_cpu_list (FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt,
|
void sparc_cpu_list (FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt,
|
||||||
...));
|
...));
|
||||||
void cpu_lock(void);
|
|
||||||
void cpu_unlock(void);
|
|
||||||
int cpu_sparc_handle_mmu_fault(CPUSPARCState *env1, target_ulong address, int rw,
|
int cpu_sparc_handle_mmu_fault(CPUSPARCState *env1, target_ulong address, int rw,
|
||||||
int mmu_idx, int is_softmmu);
|
int mmu_idx, int is_softmmu);
|
||||||
#define cpu_handle_mmu_fault cpu_sparc_handle_mmu_fault
|
#define cpu_handle_mmu_fault cpu_sparc_handle_mmu_fault
|
||||||
|
|
|
@ -41,20 +41,6 @@ static int cpu_sparc_find_by_name(sparc_def_t *cpu_def, const char *cpu_model);
|
||||||
|
|
||||||
/* Sparc MMU emulation */
|
/* Sparc MMU emulation */
|
||||||
|
|
||||||
/* 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);
|
|
||||||
}
|
|
||||||
|
|
||||||
#if defined(CONFIG_USER_ONLY)
|
#if defined(CONFIG_USER_ONLY)
|
||||||
|
|
||||||
int cpu_sparc_handle_mmu_fault(CPUState *env1, target_ulong address, int rw,
|
int cpu_sparc_handle_mmu_fault(CPUState *env1, target_ulong address, int rw,
|
||||||
|
|
Loading…
Reference in New Issue