qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [6200] CRIS: NMI wakes up the core.


From: Edgar E. Iglesias
Subject: [Qemu-devel] [6200] CRIS: NMI wakes up the core.
Date: Wed, 07 Jan 2009 12:35:08 +0000

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.

Signed-off-by: Edgar E. Iglesias <address@hidden>

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

Modified: trunk/target-cris/translate.c
===================================================================
--- trunk/target-cris/translate.c       2009-01-07 12:27:46 UTC (rev 6199)
+++ trunk/target-cris/translate.c       2009-01-07 12:35:08 UTC (rev 6200)
@@ -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:






reply via email to

[Prev in Thread] Current Thread [Next in Thread]