target-arm: Missed gen_set_condexec() in AA32 translation
cover target-arm: Missed gen_set_condexec() in AA32 translation
Sergey Fedorov (2):
target-arm: Update condexec before CP access check in AA32 translation
target-arm: Update condexec before arch BP check in AA32 translation
target-arm/translate.c | 2 ++ 1 file changed, 2 insertions(+)
Signature · 1 line
1.9.1
PATCH 1/2 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.
--- target-arm/translate.c | 1 + 1 file changed, 1 insertion(+)
target-arm/translate.c +1 -0
@@ -7210,6 +7210,7 @@ static int disas_coproc_insn(DisasContext *s, uint32_t insn)break ; } +gen_set_condexec (dc);gen_set_pc_im (s, s->pc -4 ); tmpptr =tcg_const_ptr (ri); tcg_syn =tcg_const_i32 (syndrome);
Signature · 1 line
1.9.1
PATCH 2/2 target-arm: Update condexec before arch BP check in AA32 translation
In reply to Sergey FedorovArchitectural breakpoint check could raise an exceptions, thus condexec bits should be updated before calling gen_helper_check_breakpoints().
--- target-arm/translate.c | 1 + 1 file changed, 1 insertion(+)
target-arm/translate.c +1 -0
@@ -11374,6 +11374,7 @@ void gen_intermediate_code(CPUARMState *env, TranslationBlock *tb) QTAILQ_FOREACH(bp, &cs->breakpoints, entry) {if (bp->pc == dc->pc) {if (bp->flags &BP_CPU ) { +gen_set_condexec (dc);gen_set_pc_im (dc, dc->pc);gen_helper_check_breakpoints (cpu_env);/* End the TB early; it's likely not going to be executed */
Signature · 1 line
1.9.1
Re: [Qemu-arm] [PATCH 1/2] target-arm: Update condexec before CP access check in AA32 translation
In reply to Sergey FedorovQuoted 14 lines · Sergey Fedorov
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.Signed-off-by Sergey Fedorov <[email protected]>--- target-arm/translate.c | 1 + 1 file changed, 1 insertion(+)target-arm/translate.c +0
-0
target-arm/translate.c static int disas_coproc_insn(DisasContext *s, uint32_t insn) · line 7213
Quoted 4 lines
target-arm/translate.c +1
-0@@ -7210,6 +7210,7 @@ static int disas_coproc_insn(DisasContext *s, uint32_t insn)break ; } +gen_set_condexec (dc);
Ah, there must be gen_set_condexec(s).
Quoted 3 lines
target-arm/translate.c +0
-0gen_set_pc_im (s, s->pc -4 ); tmpptr =tcg_const_ptr (ri); tcg_syn =tcg_const_i32 (syndrome);
Re: [Qemu-arm] [PATCH 1/2] target-arm: Update condexec before CP access check in AA32 translation
Quoted 18 lines · Sergey Fedorov
Quoted 17 lines · Sergey Fedorov
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.Signed-off-by Sergey Fedorov <[email protected]>--- target-arm/translate.c | 1 + 1 file changed, 1 insertion(+)target-arm/translate.c +0
-0@@ -7210,6 +7210,7 @@ static int disas_coproc_insn(DisasContext *s, uint32_t insn)break ; }
Quoted 3 lines
target-arm/translate.c static int disas_coproc_insn(DisasContext *s, uint32_t insn) · line 7213
Quoted 1 line
target-arm/translate.c +1
-0+gen_set_condexec (dc);Ah, there must be
gen_set_condexec(s).
Yep. Are you going to resend?
thanks
-- PMM
Re: [Qemu-arm] [PATCH 1/2] target-arm: Update condexec before CP access check in AA32 translation
Quoted 19 lines · Peter Maydell
Quoted 18 lines · Sergey Fedorov
Quoted 17 lines · Sergey Fedorov
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.Signed-off-by Sergey Fedorov <[email protected]>--- target-arm/translate.c | 1 + 1 file changed, 1 insertion(+)target-arm/translate.c +0
-0@@ -7210,6 +7210,7 @@ static int disas_coproc_insn(DisasContext *s, uint32_t insn)break ; }
Quoted 3 lines
Quoted 2 lines
target-arm/translate.c static int disas_coproc_insn(DisasContext *s, uint32_t insn) · line 7213
Quoted 1 line
target-arm/translate.c +1
-0+gen_set_condexec (dc);Ah, there must be
gen_set_condexec(s).Yep. Are you going to resend?
I got sort of ahead of myself with the patch. Yes, I will resend it now.
Best,
Sergey