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:
Paolo Bonzini 2011-02-08 18:18:19 +01:00 committed by Edgar E. Iglesias
parent 2905749287
commit c0c1dc9925
2 changed files with 2 additions and 6 deletions

View File

@ -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;
}

View File

@ -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;
}