cris, microblaze: use cpu_has_work
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 8 Feb 2011 17:18:19 +0000 (18:18 +0100)
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>
Tue, 8 Feb 2011 19:37:39 +0000 (20:37 +0100)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
target-cris/exec.h
target-microblaze/exec.h

index 93ce768..34c0132 100644 (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;
        }
index 87b2494..ab19828 100644 (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;
        }