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.hender...@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é <phi...@linaro.org>



Reply via email to