Commit c0c1dc99 authored by Paolo Bonzini's avatar Paolo Bonzini Committed by Edgar E. Iglesias
Browse files

cris, microblaze: use cpu_has_work

parent 29057492
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;
	}
+1 −3
Original line number Diff line number Diff line
@@ -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;
	}