mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-29 05:13:54 -06:00
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
2 changed files with 7 additions and 10 deletions
|
@ -298,6 +298,11 @@ int kvm_cpu_exec(CPUState *env)
|
|||
}
|
||||
} while (ret > 0);
|
||||
|
||||
if ((env->interrupt_request & CPU_INTERRUPT_EXIT)) {
|
||||
env->interrupt_request &= ~CPU_INTERRUPT_EXIT;
|
||||
env->exception_index = EXCP_INTERRUPT;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue