Skip to content

Commit c0c1dc9

Browse files
bonziniedgarigl
authored andcommitted
cris, microblaze: use cpu_has_work
Signed-off-by: Paolo Bonzini <[email protected]> Signed-off-by: Edgar E. Iglesias <[email protected]>
1 parent 2905749 commit c0c1dc9

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

target-cris/exec.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ static inline int cpu_halted(CPUState *env) {
3737
if (!env->halted)
3838
return 0;
3939

40-
/* IRQ, NMI and GURU execeptions wakes us up. */
41-
if (env->interrupt_request
42-
& (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI)) {
40+
if (cpu_has_work(env)) {
4341
env->halted = 0;
4442
return 0;
4543
}

target-microblaze/exec.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ static inline int cpu_halted(CPUState *env) {
3636
if (!env->halted)
3737
return 0;
3838

39-
/* IRQ, NMI and GURU execeptions wakes us up. */
40-
if (env->interrupt_request
41-
& (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI)) {
39+
if (cpu_has_work(env)) {
4240
env->halted = 0;
4341
return 0;
4442
}

0 commit comments

Comments
 (0)