From: Richard Henderson <richard.henderson@linaro.org>
To: Paolo Bonzini <pbonzini@redhat.com>, qemu-devel@nongnu.org
Cc: qemu-arm@nongnu.org
Subject: Re: [PATCH 08/11] target/arm: Implement CB, CBB, CBH
Date: Mon, 4 Aug 2025 06:28:41 +1000 [thread overview]
Message-ID: <2a2e6a67-07d5-4bf5-87c6-282867076201@linaro.org> (raw)
In-Reply-To: <c101dbc2-9431-4633-8a91-d5d85ce02082@redhat.com>
On 8/3/25 22:31, Paolo Bonzini wrote:
> On 8/3/25 03:40, Richard Henderson wrote:
>> +static bool do_cb_cond(DisasContext *s, int cc, int imm,
>> + int rt, int rm, MemOp mop)
>
> This is a memop...
>
>> +static bool trans_CB_cond(DisasContext *s, arg_CB_cond *a)
>> +{
>> + return do_cb_cond(s, a->cc, a->imm, a->rt, a->rm, a->sf ? 64 : 32);
>> +}
>> +
>> +static bool trans_CBB_cond(DisasContext *s, arg_CBB_cond *a)
>> +{
>> + return do_cb_cond(s, a->cc, a->imm, a->rt, a->rm, 8);
>> +}
>
> ... but these use bits
>
>> +static bool trans_CBH_cond(DisasContext *s, arg_CBH_cond *a)
>> +{
>> + return do_cb_cond(s, a->cc, a->imm, 16, a->rt, a->rm);
>> +}
>> +
>
> ... and this one also has arguments in the wrong order.
Gah. Thanks. I've reorganized the code to avoid this entirely.
Now to fix a gcc crash when emitting code for cmpbr... :-)
r~
next prev parent reply other threads:[~2025-08-03 20:30 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-03 1:40 [PATCH 00/11] target/arm: Implement FEAT_CSSC, FEAT_CMPBR Richard Henderson
2025-08-03 1:40 ` [PATCH 01/11] target/arm: Add feature predicate for FEAT_CSSC Richard Henderson
2025-08-15 13:06 ` Peter Maydell
2025-08-03 1:40 ` [PATCH 02/11] target/arm: Implement MIN/MAX (immediate) Richard Henderson
2025-08-15 13:18 ` Peter Maydell
2025-08-15 13:33 ` Richard Henderson
2025-08-03 1:40 ` [PATCH 03/11] target/arm: Implement MIN/MAX (register) Richard Henderson
2025-08-15 13:20 ` Peter Maydell
2025-08-03 1:40 ` [PATCH 04/11] target/arm: Split out gen_wrap2_i32 helper Richard Henderson
2025-08-15 13:09 ` Peter Maydell
2025-08-15 16:05 ` Peter Maydell
2025-08-03 1:40 ` [PATCH 05/11] target/arm: Implement CTZ, CNT, ABS Richard Henderson
2025-08-15 13:26 ` Peter Maydell
2025-08-26 16:11 ` Peter Maydell
2025-08-03 1:40 ` [PATCH 06/11] target/arm: Enable FEAT_CSSC for -cpu max Richard Henderson
2025-08-15 13:10 ` Peter Maydell
2025-08-03 1:40 ` [PATCH 07/11] target/arm: Add feature predicate for FEAT_CMPBR Richard Henderson
2025-08-03 1:40 ` [PATCH 08/11] target/arm: Implement CB, CBB, CBH Richard Henderson
2025-08-03 12:31 ` Paolo Bonzini
2025-08-03 20:28 ` Richard Henderson [this message]
2025-08-03 1:40 ` [PATCH 09/11] target/arm: Implement CB (immediate) Richard Henderson
2025-08-03 1:40 ` [PATCH 10/11] linux-user: Change exported get_elf_hwcap to abi_ulong Richard Henderson
2025-08-15 13:28 ` Peter Maydell
2025-08-03 1:40 ` [PATCH 11/11] target/arm: Enable FEAT_CMPBR for -cpu max Richard Henderson
2025-08-15 14:10 ` [PATCH 00/11] target/arm: Implement FEAT_CSSC, FEAT_CMPBR 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=2a2e6a67-07d5-4bf5-87c6-282867076201@linaro.org \
--to=richard.henderson@linaro.org \
--cc=pbonzini@redhat.com \
--cc=qemu-arm@nongnu.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).