mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
Clean up of some target specifics in exec.c/cpu-exec.c.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2936 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
08ab123c2d
commit
bfed01fc79
12 changed files with 92 additions and 92 deletions
|
@ -122,4 +122,14 @@ static inline void regs_to_env(void)
|
|||
int cpu_ppc_handle_mmu_fault (CPUState *env, target_ulong address, int rw,
|
||||
int is_user, int is_softmmu);
|
||||
|
||||
static inline int cpu_halted(CPUState *env) {
|
||||
if (!env->halted)
|
||||
return 0;
|
||||
if (env->msr[MSR_EE] && (env->interrupt_request & CPU_INTERRUPT_HARD)) {
|
||||
env->halted = 0;
|
||||
return 0;
|
||||
}
|
||||
return EXCP_HALTED;
|
||||
}
|
||||
|
||||
#endif /* !defined (__PPC_H__) */
|
||||
|
|
|
@ -40,10 +40,6 @@
|
|||
|
||||
/*****************************************************************************/
|
||||
/* Exceptions processing helpers */
|
||||
void cpu_loop_exit (void)
|
||||
{
|
||||
longjmp(env->jmp_env, 1);
|
||||
}
|
||||
|
||||
void do_raise_exception_err (uint32_t exception, int error_code)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue