mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
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:
committed by
Edgar E. Iglesias
parent
2905749287
commit
c0c1dc9925
+1
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user