qemu-riscv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4 08/36] include/qemu/int128: Use Int128 structure for TCI


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v4 08/36] include/qemu/int128: Use Int128 structure for TCI
Date: Wed, 25 Jan 2023 00:59:27 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1

On 8/1/23 03:36, Richard Henderson wrote:
We are about to allow passing Int128 to/from tcg helper functions,
but libffi doesn't support __int128_t, so use the structure.

In order for atomic128.h to continue working, we must provide
a mechanism to frob between real __int128_t and the structure.
Provide a new union, Int128Alias, for this.  We cannot modify
Int128 itself, as any changed alignment would also break libffi.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
  include/qemu/atomic128.h | 29 +++++++++++++++++++++------
  include/qemu/int128.h    | 25 +++++++++++++++++++++---
  util/int128.c            | 42 ++++++++++++++++++++++++++++++++++++++++
  3 files changed, 87 insertions(+), 9 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]