[4590] Move non-op functions from op_helper.c to helper.c and vice versa.
Revision: 4590
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4590 Author: blueswir1 Date: 2008-05-27 17:35:30 +0000 (Tue, 27 May 2008)
Log Message:
-----------
Move non-op functions from op_helper.c to helper.c and vice versa. Rearrange interrupt handling to match other targets.
Modified Paths:
--------------
trunk/cpu-exec.c
trunk/target-sparc/exec.h
trunk/target-sparc/helper.c
trunk/target-sparc/helper.h
trunk/target-sparc/op_helper.c
Modified: trunk/cpu-exec.c
===================================================================
cpu-exec.c +3 -2
@@ -333,7 +333,7 @@#elif defined(TARGET_MIPS )do_interrupt (env);#elif defined(TARGET_SPARC ) -do_interrupt (env->exception_index); +do_interrupt (env);#elif defined(TARGET_ARM )do_interrupt (env);#elif defined(TARGET_SH4 )
@@ -474,7 +474,8 @@ (pil == 15 || pil > env->psrpil)) || type != TT_EXTINT) { env->interrupt_request &= ~CPU_INTERRUPT_HARD ; -do_interrupt (env->interrupt_index); + env->exception_index = env->interrupt_index; +do_interrupt (env); env->interrupt_index =0 ;#if !defined(TARGET_SPARC64 ) && !defined(CONFIG_USER_ONLY )cpu_check_irqs (env);
Modified: trunk/target-sparc/exec.h
===================================================================
target-sparc/exec.h +1 -1
@@ -30,7 +30,7 @@int cpu_sparc_handle_mmu_fault (CPUState *env1,target_ulong address,int rw,int mmu_idx,int is_softmmu); -void do_interrupt (int intno); +void do_interrupt (CPUState *env);static inline int cpu_halted (CPUState *env1) {if (!env1->halted)
Modified: trunk/target-sparc/helper.c
===================================================================
target-sparc/helper.c +215 -6
239 lines not on this page · raw message
Modified: trunk/target-sparc/helper.h
===================================================================
target-sparc/helper.h +1 -0
@@ -183,6 +183,7 @@void cpu_unlock (void );void cpu_loop_exit (void );void set_cwp (int new_cwp); +void change_pstate (uint64_t new_pstate);void memcpy32 (target_ulong *dst,const target_ulong *src);target_ulong mmu_probe (CPUState *env,target_ulong address,int mmulev);void dump_mmu (CPUState *env);
Modified: trunk/target-sparc/op_helper.c
===================================================================
target-sparc/op_helper.c +13 -234
279 lines not on this page · raw message