mirror of https://github.com/xemu-project/xemu.git
KVM: simplify kvm_cpu_exec hook
We don't need to use cpu_loop_exit() because we never use the condition codes so everything can be folded into a single case. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5669 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
57951c2742
commit
becfc39041
12
cpu-exec.c
12
cpu-exec.c
|
@ -369,16 +369,8 @@ int cpu_exec(CPUState *env1)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (kvm_enabled()) {
|
if (kvm_enabled()) {
|
||||||
int ret;
|
kvm_cpu_exec(env);
|
||||||
ret = kvm_cpu_exec(env);
|
longjmp(env->jmp_env, 1);
|
||||||
if ((env->interrupt_request & CPU_INTERRUPT_EXIT)) {
|
|
||||||
env->interrupt_request &= ~CPU_INTERRUPT_EXIT;
|
|
||||||
env->exception_index = EXCP_INTERRUPT;
|
|
||||||
cpu_loop_exit();
|
|
||||||
} else if (env->halted) {
|
|
||||||
cpu_loop_exit();
|
|
||||||
} else
|
|
||||||
longjmp(env->jmp_env, 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
next_tb = 0; /* force lookup of first TB */
|
next_tb = 0; /* force lookup of first TB */
|
||||||
|
|
Loading…
Reference in New Issue