Skip to contentSkip to conversation

[6200] 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: 6200

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

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

Modified Paths:
--------------
trunk/target-cris/translate.c

Modified: trunk/target-cris/translate.c
===================================================================

target-cris/translate.c +5 -1
@@ -2979,8 +2979,12 @@
 {
 	cris_cc_mask(dc, 0);
 
-	if (dc->op2 == 15) /* ignore halt.  */
+	if (dc->op2 == 15) {
+		t_gen_mov_env_TN(halted, tcg_const_tl(1));
+		tcg_gen_movi_tl(env_pc, dc->pc + 2);
+		t_gen_raise_exception(EXCP_HLT);
 		return 2;
+	}
 
 	switch (dc->op2 & 7) {
 		case 2: