target-arm: Update condexec before CP access check in AA32 translation

Coprocessor access instructions are allowed inside IT block.
gen_helper_access_check_cp_reg() can raise an exceptions thus condexec
bits should be updated before.

Backports commit 43bfa4a100687af8d293fef0a197839b51400fca from qemu
This commit is contained in:
Sergey Fedorov 2018-02-17 18:33:33 -05:00 committed by Lioncash
parent 3f4efdd95e
commit b42bfc59f1
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -7340,6 +7340,7 @@ static int disas_coproc_insn(DisasContext *s, uint32_t insn)
break;
}
gen_set_condexec(s);
gen_set_pc_im(s, s->pc - 4);
tmpptr = tcg_const_ptr(tcg_ctx, ri);
tcg_syn = tcg_const_i32(tcg_ctx, syndrome);