From: blueswir1 Date: Fri, 3 Oct 2008 19:02:42 +0000 (+0000) Subject: Fix missing prototype warnings by moving declarations X-Git-Tag: 0.10.0-0maemo1~936 X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=48585ec51df87e4da1f5af9c69770194b32d17b3;p=qemu Fix missing prototype warnings by moving declarations git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5407 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h index 6faaa6f..33aed2d 100644 --- a/target-sparc/cpu.h +++ b/target-sparc/cpu.h @@ -340,6 +340,12 @@ CPUSPARCState *cpu_sparc_init(const char *cpu_model); 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 cpu_lock(void); +void cpu_unlock(void); +int cpu_sparc_handle_mmu_fault(CPUSPARCState *env1, target_ulong address, int rw, + int mmu_idx, int is_softmmu); +target_ulong mmu_probe(CPUSPARCState *env, target_ulong address, int mmulev); +void dump_mmu(CPUSPARCState *env); /* translate.c */ void gen_intermediate_code_init(CPUSPARCState *env); @@ -492,4 +498,7 @@ static inline void cpu_clone_regs(CPUState *env, target_ulong newsp) #include "cpu-all.h" +/* sum4m.c, sun4u.c */ +void cpu_check_irqs(CPUSPARCState *env); + #endif diff --git a/target-sparc/exec.h b/target-sparc/exec.h index 2b478cb..75410aa 100644 --- a/target-sparc/exec.h +++ b/target-sparc/exec.h @@ -21,23 +21,12 @@ static inline void regs_to_env(void) { } -/* helper.c */ -void cpu_lock(void); -void cpu_unlock(void); -int cpu_sparc_handle_mmu_fault(CPUState *env1, target_ulong address, int rw, - int mmu_idx, int is_softmmu); -target_ulong mmu_probe(CPUState *env, target_ulong address, int mmulev); -void dump_mmu(CPUState *env); - /* op_helper.c */ void do_interrupt(CPUState *env); /* cpu-exec.c */ void cpu_loop_exit(void); -/* sun4m.c */ -void cpu_check_irqs(CPUSPARCState *env); - static inline int cpu_halted(CPUState *env1) { if (!env1->halted) return 0;