提交 c0c1dc99 编写于 作者: P Paolo Bonzini 提交者: Edgar E. Iglesias

cris, microblaze: use cpu_has_work

Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: NEdgar E. Iglesias <edgar.iglesias@gmail.com>
上级 29057492
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册