mirror of https://github.com/xemu-project/xemu.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)
|
if (!env->halted)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* IRQ, NMI and GURU execeptions wakes us up. */
|
if (cpu_has_work(env)) {
|
||||||
if (env->interrupt_request
|
|
||||||
& (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI)) {
|
|
||||||
env->halted = 0;
|
env->halted = 0;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,9 +36,7 @@ static inline int cpu_halted(CPUState *env) {
|
||||||
if (!env->halted)
|
if (!env->halted)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* IRQ, NMI and GURU execeptions wakes us up. */
|
if (cpu_has_work(env)) {
|
||||||
if (env->interrupt_request
|
|
||||||
& (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI)) {
|
|
||||||
env->halted = 0;
|
env->halted = 0;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue