Commit 213fb478f80a493f5f25b45d7a5763c8d81ca140
1 parent
459e5185
CRIS: NMI wakes up the core.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6200 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
5 additions
and
1 deletions
target-cris/translate.c
... | ... | @@ -2979,8 +2979,12 @@ static unsigned int dec_rfe_etc(DisasContext *dc) |
2979 | 2979 | { |
2980 | 2980 | cris_cc_mask(dc, 0); |
2981 | 2981 | |
2982 | - if (dc->op2 == 15) /* ignore halt. */ | |
2982 | + if (dc->op2 == 15) { | |
2983 | + t_gen_mov_env_TN(halted, tcg_const_tl(1)); | |
2984 | + tcg_gen_movi_tl(env_pc, dc->pc + 2); | |
2985 | + t_gen_raise_exception(EXCP_HLT); | |
2983 | 2986 | return 2; |
2987 | + } | |
2984 | 2988 | |
2985 | 2989 | switch (dc->op2 & 7) { |
2986 | 2990 | case 2: | ... | ... |