mirror of https://gitee.com/openkylin/qemu.git
cris, microblaze: use cpu_has_work
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
This commit is contained in:
parent
2905749287
commit
c0c1dc9925
|
@ -37,9 +37,7 @@ static inline int cpu_halted(CPUState *env) {
|
|||
if (!env->halted)
|
||||
return 0;
|
||||
|
||||
/* IRQ, NMI and GURU execeptions wakes us up. */
|
||||
if (env->interrupt_request
|
||||
& (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI)) {
|
||||
if (cpu_has_work(env)) {
|
||||
env->halted = 0;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -36,9 +36,7 @@ static inline int cpu_halted(CPUState *env) {
|
|||
if (!env->halted)
|
||||
return 0;
|
||||
|
||||
/* IRQ, NMI and GURU execeptions wakes us up. */
|
||||
if (env->interrupt_request
|
||||
& (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI)) {
|
||||
if (cpu_has_work(env)) {
|
||||
env->halted = 0;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue