Skip to contentSkip to conversation

[6201] CRIS: NMI wakes up the core.

Qemu-devel Edgar E. Iglesias 1 participant 1 message Jan 7, 2009

lore
Share & tools
lore
#0 lore raw

Revision: 6201

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6201
Author:   edgar_igl
Date:     2009-01-07 12:36:06 +0000 (Wed, 07 Jan 2009)

Log Message:
-----------
CRIS: NMI wakes up the core.

Modified Paths:
--------------
trunk/target-cris/exec.h

Modified: trunk/target-cris/exec.h
===================================================================

target-cris/exec.h +4 -1
@@ -46,7 +46,10 @@
 static inline int cpu_halted(CPUState *env) {
 	if (!env->halted)
 		return 0;
-	if (env->interrupt_request & CPU_INTERRUPT_HARD) {
+
+	/* IRQ, NMI and GURU execeptions wakes us up.  */
+	if (env->interrupt_request
+	    & (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI)) {
 		env->halted = 0;
 		return 0;
 	}