mirror of
https://github.com/mii443/qemu.git
synced 2025-08-23 23:49:36 +00:00
target-m68k: Use cpu_exec_enter/exit qom hooks
Signed-off-by: Richard Henderson <rth@twiddle.net> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Message-id: 1410626734-3804-5-git-send-email-rth@twiddle.net Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
committed by
Peter Maydell
parent
374e0cd4db
commit
00f3fd63e1
13
cpu-exec.c
13
cpu-exec.c
@ -352,11 +352,7 @@ int cpu_exec(CPUArchState *env)
|
||||
cpu->exit_request = 1;
|
||||
}
|
||||
|
||||
#if defined(TARGET_M68K)
|
||||
env->cc_op = CC_OP_FLAGS;
|
||||
env->cc_dest = env->sr & 0xf;
|
||||
env->cc_x = (env->sr >> 4) & 1;
|
||||
#elif defined(TARGET_PPC)
|
||||
#if defined(TARGET_PPC)
|
||||
env->reserve_addr = -1;
|
||||
#endif
|
||||
cc->cpu_exec_enter(cpu);
|
||||
@ -804,13 +800,6 @@ int cpu_exec(CPUArchState *env)
|
||||
}
|
||||
} /* for(;;) */
|
||||
|
||||
|
||||
#if defined(TARGET_M68K)
|
||||
cpu_m68k_flush_flags(env, env->cc_op);
|
||||
env->cc_op = CC_OP_FLAGS;
|
||||
env->sr = (env->sr & 0xffe0)
|
||||
| env->cc_dest | (env->cc_x << 4);
|
||||
#endif
|
||||
cc->cpu_exec_exit(cpu);
|
||||
|
||||
/* fail safe : never use current_cpu outside cpu_exec() */
|
||||
|
Reference in New Issue
Block a user