Commit 48585ec51df87e4da1f5af9c69770194b32d17b3
1 parent
3e46b2ef
Fix missing prototype warnings by moving declarations
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5407 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
2 changed files
with
9 additions
and
11 deletions
target-sparc/cpu.h
| ... | ... | @@ -340,6 +340,12 @@ CPUSPARCState *cpu_sparc_init(const char *cpu_model); |
| 340 | 340 | void cpu_sparc_set_id(CPUSPARCState *env, unsigned int cpu); |
| 341 | 341 | void sparc_cpu_list (FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, |
| 342 | 342 | ...)); |
| 343 | +void cpu_lock(void); | |
| 344 | +void cpu_unlock(void); | |
| 345 | +int cpu_sparc_handle_mmu_fault(CPUSPARCState *env1, target_ulong address, int rw, | |
| 346 | + int mmu_idx, int is_softmmu); | |
| 347 | +target_ulong mmu_probe(CPUSPARCState *env, target_ulong address, int mmulev); | |
| 348 | +void dump_mmu(CPUSPARCState *env); | |
| 343 | 349 | |
| 344 | 350 | /* translate.c */ |
| 345 | 351 | void gen_intermediate_code_init(CPUSPARCState *env); |
| ... | ... | @@ -492,4 +498,7 @@ static inline void cpu_clone_regs(CPUState *env, target_ulong newsp) |
| 492 | 498 | |
| 493 | 499 | #include "cpu-all.h" |
| 494 | 500 | |
| 501 | +/* sum4m.c, sun4u.c */ | |
| 502 | +void cpu_check_irqs(CPUSPARCState *env); | |
| 503 | + | |
| 495 | 504 | #endif | ... | ... |
target-sparc/exec.h
| ... | ... | @@ -21,23 +21,12 @@ static inline void regs_to_env(void) |
| 21 | 21 | { |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | -/* helper.c */ | |
| 25 | -void cpu_lock(void); | |
| 26 | -void cpu_unlock(void); | |
| 27 | -int cpu_sparc_handle_mmu_fault(CPUState *env1, target_ulong address, int rw, | |
| 28 | - int mmu_idx, int is_softmmu); | |
| 29 | -target_ulong mmu_probe(CPUState *env, target_ulong address, int mmulev); | |
| 30 | -void dump_mmu(CPUState *env); | |
| 31 | - | |
| 32 | 24 | /* op_helper.c */ |
| 33 | 25 | void do_interrupt(CPUState *env); |
| 34 | 26 | |
| 35 | 27 | /* cpu-exec.c */ |
| 36 | 28 | void cpu_loop_exit(void); |
| 37 | 29 | |
| 38 | -/* sun4m.c */ | |
| 39 | -void cpu_check_irqs(CPUSPARCState *env); | |
| 40 | - | |
| 41 | 30 | static inline int cpu_halted(CPUState *env1) { |
| 42 | 31 | if (!env1->halted) |
| 43 | 32 | return 0; | ... | ... |