From: Richard Henderson <richard.henderson@linaro.org>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>, qemu-devel@nongnu.org
Cc: "Daniel P. Berrangé" <berrange@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Stefan Weil" <sw@weilnetz.de>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>
Subject: Re: [PATCH-for-10.2 2/2] tcg/tci: Disable Int128 support
Date: Wed, 3 Dec 2025 05:18:04 -0800 [thread overview]
Message-ID: <42b65dcf-e3a6-4f7a-b012-b4d1d7a70b2f@linaro.org> (raw)
In-Reply-To: <2f307b46-42d8-445a-8aec-91fa101244f2@linaro.org>
On 12/2/25 14:30, Richard Henderson wrote:
> On 12/2/25 10:46, Philippe Mathieu-Daudé wrote:
>> Disable Int128 on TCI, otherwise build fails:
>>
>> In file included from ../../tcg/optimize.c:29:
>> In file included from include/tcg/tcg-op-common.h:12:
>> In file included from include/exec/helper-proto-common.h:10:
>> In file included from include/qemu/atomic128.h:62:
>> In file included from host/include/aarch64/host/atomic128-cas.h.inc:16:
>> host/include/generic/host/atomic128-cas.h.inc:37:12: error: initializing
>> 'Int128' (aka 'struct Int128') with an expression of incompatible type '__int128_t' (aka
>> '__int128')
>> 37 | Int128 old = *ptr_align;
>> | ^ ~~~~~~~~~~
>> host/include/generic/host/atomic128-cas.h.inc:39:52: warning: incompatible pointer
>> types passing 'Int128 *' (aka 'struct Int128 *') to parameter of type '__int128_t
>> *' (aka '__int128 *') [-Wincompatible-pointer-types]
>> 39 | while (!__atomic_compare_exchange_n(ptr_align, &old, new, true,
>> | ^~~~
>> host/include/generic/host/atomic128-cas.h.inc:39:58: error: passing 'Int128' (aka
>> 'struct Int128') to parameter of incompatible type '__int128_t' (aka '__int128')
>> 39 | while (!__atomic_compare_exchange_n(ptr_align, &old, new, true,
>> | ^~~
>> host/include/generic/host/atomic128-cas.h.inc:50:12: error: initializing
>> 'Int128' (aka 'struct Int128') with an expression of incompatible type '__int128_t' (aka
>> '__int128')
>> 50 | Int128 old = *ptr_align;
>> | ^ ~~~~~~~~~~
>> host/include/generic/host/atomic128-cas.h.inc:52:62: error: invalid operands to
>> binary expression ('Int128' (aka 'struct Int128') and 'Int128')
>> 52 | while (!__atomic_compare_exchange_n(ptr_align, &old, old & val, true,
>> | ~~~ ^ ~~~
>> host/include/generic/host/atomic128-cas.h.inc:63:12: error: initializing
>> 'Int128' (aka 'struct Int128') with an expression of incompatible type '__int128_t' (aka
>> '__int128')
>> 63 | Int128 old = *ptr_align;
>> | ^ ~~~~~~~~~~
>> host/include/generic/host/atomic128-cas.h.inc:65:62: error: invalid operands to
>> binary expression ('Int128' (aka 'struct Int128') and 'Int128')
>> 65 | while (!__atomic_compare_exchange_n(ptr_align, &old, old | val, true,
>> | ~~~ ^ ~~~
>> 1 warning and 6 errors generated.
>>
>> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
>
> And what of the CONFIG_TCG_INTERPRETER test that already exists in int128.h?
>
> There's got to be more to this than that.
If you disable Int128 entirely, then we can't use
host/include/generic/host/atomic128-cas.h.inc at all. The bug is within that header, were
we need to use Int128Alias more, as we already do for atomic16_cmpxchg.
I'll post a fix.
r~
prev parent reply other threads:[~2025-12-03 13:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-02 18:46 [PATCH-for-10.2 0/2] tcg: Fix TCI build on macOS Philippe Mathieu-Daudé
2025-12-02 18:46 ` [PATCH-for-10.2? 1/2] tcg/tci: Disable -Wundef FFI_GO_CLOSURES warning Philippe Mathieu-Daudé
2025-12-03 0:34 ` Richard Henderson
2025-12-02 18:46 ` [PATCH-for-10.2 2/2] tcg/tci: Disable Int128 support Philippe Mathieu-Daudé
2025-12-02 22:30 ` Richard Henderson
2025-12-03 13:18 ` Richard Henderson [this message]
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=42b65dcf-e3a6-4f7a-b012-b4d1d7a70b2f@linaro.org \
--to=richard.henderson@linaro.org \
--cc=berrange@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=pbonzini@redhat.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=sw@weilnetz.de \
/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).