• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修訂8da54b2507c1cabf60c2de904cf0383b23239231 (tree)
時間2017-06-20 03:11:26
作者Richard Henderson <rth@twid...>
CommiterRichard Henderson

Log Message

target/arm: Exit after clearing aarch64 interrupt mask

Exit to cpu loop so we reevaluate cpu_arm_hw_interrupts.

Tested-by: Emilio G. Cota <cota@braap.org>
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Emilio G. Cota <cota@braap.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>

Change Summary

差異

--- a/target/arm/translate-a64.c
+++ b/target/arm/translate-a64.c
@@ -1422,7 +1422,9 @@ static void handle_msr_i(DisasContext *s, uint32_t insn,
14221422 gen_helper_msr_i_pstate(cpu_env, tcg_op, tcg_imm);
14231423 tcg_temp_free_i32(tcg_imm);
14241424 tcg_temp_free_i32(tcg_op);
1425- s->is_jmp = DISAS_UPDATE;
1425+ /* For DAIFClear, exit the cpu loop to re-evaluate pending IRQs. */
1426+ gen_a64_set_pc_im(s->pc);
1427+ s->is_jmp = (op == 0x1f ? DISAS_EXIT : DISAS_JUMP);
14261428 break;
14271429 }
14281430 default:
@@ -11369,6 +11371,9 @@ void gen_intermediate_code_a64(ARMCPU *cpu, TranslationBlock *tb)
1136911371 case DISAS_JUMP:
1137011372 tcg_gen_lookup_and_goto_ptr(cpu_pc);
1137111373 break;
11374+ case DISAS_EXIT:
11375+ tcg_gen_exit_tb(0);
11376+ break;
1137211377 case DISAS_TB_JUMP:
1137311378 case DISAS_EXC:
1137411379 case DISAS_SWI: