From: Richard Henderson <richard.henderson@linaro.org>
To: qemu-devel@nongnu.org
Subject: Re: [PATCH] target/arm: Don't assert() for ISB/SB inside IT block
Date: Thu, 1 May 2025 07:24:07 -0700 [thread overview]
Message-ID: <b7dcb3a9-fffe-43b7-a4f8-e688eae18330@linaro.org> (raw)
In-Reply-To: <20250501125544.727038-1-peter.maydell@linaro.org>
On 5/1/25 05:55, Peter Maydell wrote:
> (NB: the TCG optimizer doesn't optimize out the jump-to-next, but
> we can't really avoid emitting it because we don't know at the
> point we're emitting the handling for the condexec check whether
> this insn is going to happen to be a nop for us or not.)
Heh. For some reason I only fold unconditional branch-to-next.
I'll fix this. Anyway,
>
> Cc: qemu-stable@nongnu.org
> Fixes: https://gitlab.com/qemu-project/qemu/-/issues/2942
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
> target/arm/tcg/translate.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/target/arm/tcg/translate.c b/target/arm/tcg/translate.c
> index 88df9c482ab..e773ab72685 100644
> --- a/target/arm/tcg/translate.c
> +++ b/target/arm/tcg/translate.c
> @@ -7760,7 +7760,8 @@ static bool arm_check_ss_active(DisasContext *dc)
>
> static void arm_post_translate_insn(DisasContext *dc)
> {
> - if (dc->condjmp && dc->base.is_jmp == DISAS_NEXT) {
> + if (dc->condjmp &&
> + (dc->base.is_jmp == DISAS_NEXT || dc->base.is_jmp == DISAS_TOO_MANY)) {
> if (dc->pc_save != dc->condlabel.pc_save) {
> gen_update_pc(dc, dc->condlabel.pc_save - dc->pc_save);
> }
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
next prev parent reply other threads:[~2025-05-01 14:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-01 12:55 [PATCH] target/arm: Don't assert() for ISB/SB inside IT block Peter Maydell
2025-05-01 14:24 ` Richard Henderson [this message]
2025-05-08 7:31 ` Michael Tokarev
2025-05-08 10:18 ` Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b7dcb3a9-fffe-43b7-a4f8-e688eae18330@linaro.org \
--to=richard.henderson@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).