aboutsummaryrefslogtreecommitdiff
path: root/target-sparc
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-03 19:02:42 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-10-03 19:02:42 +0000
commit48585ec51df87e4da1f5af9c69770194b32d17b3 (patch)
tree6ce236ad30772f321296a43be77970b4efc1a303 /target-sparc
parent3e46b2ef2a4eed5e4e373e9126f6eddaed8ccda6 (diff)
Fix missing prototype warnings by moving declarations
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5407 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc')
-rw-r--r--target-sparc/cpu.h9
-rw-r--r--target-sparc/exec.h11
2 files changed, 9 insertions, 11 deletions
diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h
index 6faaa6f914..33aed2d888 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 2b478cb2b5..75410aa790 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;