Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L6p4i-0005jb-NU for qemu-devel@nongnu.org; Sun, 30 Nov 2008 11:23:12 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L6p4i-0005j8-0P for qemu-devel@nongnu.org; Sun, 30 Nov 2008 11:23:12 -0500 Received: from [199.232.76.173] (port=39007 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6p4h-0005iw-Rv for qemu-devel@nongnu.org; Sun, 30 Nov 2008 11:23:11 -0500 Received: from savannah.gnu.org ([199.232.41.3]:48762 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L6p4h-0006gT-H4 for qemu-devel@nongnu.org; Sun, 30 Nov 2008 11:23:11 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1L6p4g-0005t5-UW for qemu-devel@nongnu.org; Sun, 30 Nov 2008 16:23:11 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1L6p4g-0005sw-HZ for qemu-devel@nongnu.org; Sun, 30 Nov 2008 16:23:10 +0000 MIME-Version: 1.0 Errors-To: aurel32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Aurelien Jarno Message-Id: Date: Sun, 30 Nov 2008 16:23:10 +0000 Subject: [Qemu-devel] [5820] Common cpu_loop_exit prototype Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5820 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5820 Author: aurel32 Date: 2008-11-30 16:23:09 +0000 (Sun, 30 Nov 2008) Log Message: ----------- 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 Signed-off-by: Aurelien Jarno Modified Paths: -------------- trunk/exec-all.h trunk/target-alpha/cpu.h trunk/target-arm/exec.h trunk/target-cris/exec.h trunk/target-i386/exec.h trunk/target-m68k/exec.h trunk/target-mips/exec.h trunk/target-ppc/cpu.h trunk/target-sh4/exec.h trunk/target-sparc/exec.h Modified: trunk/exec-all.h =================================================================== --- trunk/exec-all.h 2008-11-30 16:22:56 UTC (rev 5819) +++ trunk/exec-all.h 2008-11-30 16:23:09 UTC (rev 5820) @@ -82,6 +82,7 @@ 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); Modified: trunk/target-alpha/cpu.h =================================================================== --- trunk/target-alpha/cpu.h 2008-11-30 16:22:56 UTC (rev 5819) +++ trunk/target-alpha/cpu.h 2008-11-30 16:23:09 UTC (rev 5820) @@ -409,7 +409,6 @@ 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); Modified: trunk/target-arm/exec.h =================================================================== --- trunk/target-arm/exec.h 2008-11-30 16:22:56 UTC (rev 5819) +++ trunk/target-arm/exec.h 2008-11-30 16:23:09 UTC (rev 5820) @@ -58,6 +58,4 @@ #include "softmmu_exec.h" #endif -void cpu_loop_exit(void); - void raise_exception(int); Modified: trunk/target-cris/exec.h =================================================================== --- trunk/target-cris/exec.h 2008-11-30 16:22:56 UTC (rev 5819) +++ trunk/target-cris/exec.h 2008-11-30 16:23:09 UTC (rev 5820) @@ -45,8 +45,6 @@ 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; Modified: trunk/target-i386/exec.h =================================================================== --- trunk/target-i386/exec.h 2008-11-30 16:22:56 UTC (rev 5819) +++ trunk/target-i386/exec.h 2008-11-30 16:23:09 UTC (rev 5820) @@ -72,7 +72,6 @@ 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) Modified: trunk/target-m68k/exec.h =================================================================== --- trunk/target-m68k/exec.h 2008-11-30 16:22:56 UTC (rev 5819) +++ trunk/target-m68k/exec.h 2008-11-30 16:23:09 UTC (rev 5820) @@ -44,8 +44,6 @@ #include "softmmu_exec.h" #endif -void cpu_loop_exit(void); - static inline int cpu_halted(CPUState *env) { if (!env->halted) return 0; Modified: trunk/target-mips/exec.h =================================================================== --- trunk/target-mips/exec.h 2008-11-30 16:22:56 UTC (rev 5819) +++ trunk/target-mips/exec.h 2008-11-30 16:23:09 UTC (rev 5820) @@ -29,7 +29,6 @@ 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); Modified: trunk/target-ppc/cpu.h =================================================================== --- trunk/target-ppc/cpu.h 2008-11-30 16:22:56 UTC (rev 5819) +++ trunk/target-ppc/cpu.h 2008-11-30 16:23:09 UTC (rev 5820) @@ -689,7 +689,6 @@ void do_interrupt (CPUPPCState *env); void ppc_hw_interrupt (CPUPPCState *env); -void cpu_loop_exit (void); void dump_stack (CPUPPCState *env); Modified: trunk/target-sh4/exec.h =================================================================== --- trunk/target-sh4/exec.h 2008-11-30 16:22:56 UTC (rev 5819) +++ trunk/target-sh4/exec.h 2008-11-30 16:23:09 UTC (rev 5820) @@ -65,6 +65,4 @@ void do_interrupt(CPUState * env); -void cpu_loop_exit(void); - #endif /* _EXEC_SH4_H */ Modified: trunk/target-sparc/exec.h =================================================================== --- trunk/target-sparc/exec.h 2008-11-30 16:22:56 UTC (rev 5819) +++ trunk/target-sparc/exec.h 2008-11-30 16:23:09 UTC (rev 5820) @@ -24,9 +24,6 @@ /* 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;