qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH for-8.0 v2 12/13] target/s390x: Use tcg_gen_atomic_cmpxchg_i1


From: Richard Henderson
Subject: Re: [PATCH for-8.0 v2 12/13] target/s390x: Use tcg_gen_atomic_cmpxchg_i128 for CDSG
Date: Mon, 28 Nov 2022 16:02:39 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

On 11/28/22 15:40, Ilya Leoshkevich wrote:
On an s390x host we fall back to cpu_exec_step_atomic(), because in the
configure test:

       int main(void)
       {
         unsigned __int128 x = 0, y = 0;
         __sync_val_compare_and_swap_16(&x, y, x);
         return 0;
       }

x and y are not aligned. I guess that's working as intended as well,
even though it would be nice to eventually make use of cdsg there.

I have a fix for that as a part of '[PATCH for-8.0 00/29] tcg: Improve 
atomicity support':
20221118094754.242910-14-richard.henderson@linaro.org/">https://lore.kernel.org/qemu-devel/20221118094754.242910-14-richard.henderson@linaro.org/


r~




reply via email to

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