diff options
author | Fabien Chouteau <chouteau@adacore.com> | 2011-11-03 16:10:04 +0100 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-11-19 11:22:57 +0000 |
commit | 96d922a654f4b5a806af43d6dc6fa7c1becbbac6 (patch) | |
tree | 93da28bba54254011b814dbb611b232e4bb7be2a /target-sparc/translate.c | |
parent | 9643c25f8d67646857159d6fc021b07e7a659192 (diff) |
Improve "ta 0" shutdown
This patch replace the previous implementation with this simplified and
more complete version (no shutdown when psret == 1).
Signed-off-by: Fabien Chouteau <chouteau@adacore.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-sparc/translate.c')
-rw-r--r-- | target-sparc/translate.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/target-sparc/translate.c b/target-sparc/translate.c index 93185402fd..d26111209e 100644 --- a/target-sparc/translate.c +++ b/target-sparc/translate.c @@ -2518,15 +2518,8 @@ static void disas_sparc_insn(DisasContext * dc) tcg_gen_andi_tl(cpu_dst, cpu_dst, V8_TRAP_MASK); tcg_gen_addi_tl(cpu_dst, cpu_dst, TT_TRAP); tcg_gen_trunc_tl_i32(cpu_tmp32, cpu_dst); + gen_helper_raise_exception(cpu_env, cpu_tmp32); - if (rs2 == 0 && - dc->def->features & CPU_FEATURE_TA0_SHUTDOWN) { - - gen_helper_shutdown(); - - } else { - gen_helper_raise_exception(cpu_env, cpu_tmp32); - } } else if (cond != 0) { TCGv r_cond = tcg_temp_new(); int l1; |