diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-11-30 16:23:09 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-11-30 16:23:09 +0000 |
commit | 2cbd949d7acc8381a87ba653ad973aa03e55b475 (patch) | |
tree | fe787ed575b050c9cd3ccea0e3d9c337d424437a | |
parent | 0f3955e2d28d71bc18935913e0bc2c5d134b1568 (diff) |
Common cpu_loop_exit prototype
All archs use the same cpu_loop_exit, so move the prototype in a common
header. i386 was carrying a __hidden attribute, but that was empty for
this arch anyway.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5820 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | exec-all.h | 1 | ||||
-rw-r--r-- | target-alpha/cpu.h | 1 | ||||
-rw-r--r-- | target-arm/exec.h | 2 | ||||
-rw-r--r-- | target-cris/exec.h | 2 | ||||
-rw-r--r-- | target-i386/exec.h | 1 | ||||
-rw-r--r-- | target-m68k/exec.h | 2 | ||||
-rw-r--r-- | target-mips/exec.h | 1 | ||||
-rw-r--r-- | target-ppc/cpu.h | 1 | ||||
-rw-r--r-- | target-sh4/exec.h | 2 | ||||
-rw-r--r-- | target-sparc/exec.h | 3 |
10 files changed, 1 insertions, 15 deletions
diff --git a/exec-all.h b/exec-all.h index aec318ba89..ca97f575ef 100644 --- a/exec-all.h +++ b/exec-all.h @@ -82,6 +82,7 @@ TranslationBlock *tb_gen_code(CPUState *env, target_ulong pc, target_ulong cs_base, int flags, int cflags); void cpu_exec_init(CPUState *env); +void cpu_loop_exit(void); int page_unprotect(target_ulong address, unsigned long pc, void *puc); void tb_invalidate_phys_page_range(target_phys_addr_t start, target_phys_addr_t end, int is_cpu_write_access); diff --git a/target-alpha/cpu.h b/target-alpha/cpu.h index 122e2c29e6..65be4fb5e5 100644 --- a/target-alpha/cpu.h +++ b/target-alpha/cpu.h @@ -409,7 +409,6 @@ int cpu_alpha_signal_handler(int host_signum, void *pinfo, void *puc); int cpu_alpha_mfpr (CPUState *env, int iprn, uint64_t *valp); int cpu_alpha_mtpr (CPUState *env, int iprn, uint64_t val, uint64_t *oldvalp); -void cpu_loop_exit (void); void pal_init (CPUState *env); #if !defined (CONFIG_USER_ONLY) void call_pal (CPUState *env); diff --git a/target-arm/exec.h b/target-arm/exec.h index c543cf4a46..88f08862d6 100644 --- a/target-arm/exec.h +++ b/target-arm/exec.h @@ -58,6 +58,4 @@ static inline int cpu_halted(CPUState *env) { #include "softmmu_exec.h" #endif -void cpu_loop_exit(void); - void raise_exception(int); diff --git a/target-cris/exec.h b/target-cris/exec.h index 61714738d8..ec7346acd9 100644 --- a/target-cris/exec.h +++ b/target-cris/exec.h @@ -45,8 +45,6 @@ int cpu_cris_handle_mmu_fault (CPUState *env, target_ulong address, int rw, void cpu_cris_flush_flags(CPUCRISState *env, int cc_op); void helper_movec(CPUCRISState *env, int reg, uint32_t val); -void cpu_loop_exit(void); - static inline int cpu_halted(CPUState *env) { if (!env->halted) return 0; diff --git a/target-i386/exec.h b/target-i386/exec.h index d0756e1990..36631665ed 100644 --- a/target-i386/exec.h +++ b/target-i386/exec.h @@ -72,7 +72,6 @@ void raise_interrupt(int intno, int is_int, int error_code, void raise_exception_err(int exception_index, int error_code); void raise_exception(int exception_index); void do_smm_enter(void); -void __hidden cpu_loop_exit(void); /* n must be a constant to be efficient */ static inline target_long lshift(target_long x, int n) diff --git a/target-m68k/exec.h b/target-m68k/exec.h index 745606ec0e..f67941d22b 100644 --- a/target-m68k/exec.h +++ b/target-m68k/exec.h @@ -44,8 +44,6 @@ int cpu_m68k_handle_mmu_fault (CPUState *env, target_ulong address, int rw, #include "softmmu_exec.h" #endif -void cpu_loop_exit(void); - static inline int cpu_halted(CPUState *env) { if (!env->halted) return 0; diff --git a/target-mips/exec.h b/target-mips/exec.h index 5d3e356077..8ab64370f0 100644 --- a/target-mips/exec.h +++ b/target-mips/exec.h @@ -29,7 +29,6 @@ int cpu_mips_handle_mmu_fault (CPUState *env, target_ulong address, int rw, void do_interrupt (CPUState *env); void r4k_invalidate_tlb (CPUState *env, int idx, int use_extra); -void cpu_loop_exit(void); void do_raise_exception_err (uint32_t exception, int error_code); void do_raise_exception (uint32_t exception); diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h index 711044b4d9..8f7309b372 100644 --- a/target-ppc/cpu.h +++ b/target-ppc/cpu.h @@ -689,7 +689,6 @@ int cpu_ppc_signal_handler (int host_signum, void *pinfo, void do_interrupt (CPUPPCState *env); void ppc_hw_interrupt (CPUPPCState *env); -void cpu_loop_exit (void); void dump_stack (CPUPPCState *env); diff --git a/target-sh4/exec.h b/target-sh4/exec.h index f2e6feada2..6122610844 100644 --- a/target-sh4/exec.h +++ b/target-sh4/exec.h @@ -65,6 +65,4 @@ int find_utlb_entry(CPUState * env, target_ulong address, int use_asid); void do_interrupt(CPUState * env); -void cpu_loop_exit(void); - #endif /* _EXEC_SH4_H */ diff --git a/target-sparc/exec.h b/target-sparc/exec.h index 75410aa790..36fd1176fc 100644 --- a/target-sparc/exec.h +++ b/target-sparc/exec.h @@ -24,9 +24,6 @@ static inline void regs_to_env(void) /* op_helper.c */ void do_interrupt(CPUState *env); -/* cpu-exec.c */ -void cpu_loop_exit(void); - static inline int cpu_halted(CPUState *env1) { if (!env1->halted) return 0; |