mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06: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:
parent
2905749287
commit
c0c1dc9925
2 changed files with 2 additions and 6 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue