[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-arm] [PATCH 4/9] tcg: Introduce atomic helpers for integer min
From: |
Richard Henderson |
Subject: |
Re: [Qemu-arm] [PATCH 4/9] tcg: Introduce atomic helpers for integer min/max |
Date: |
Thu, 3 May 2018 10:39:17 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 |
On 05/03/2018 10:26 AM, Peter Maydell wrote:
>> It won't be compiled for the 32-bit host. Translation will not attempt to
>> use
>> this helper and will instead call exit_atomic.
>
> OK. Can you point me at the code that handles min/max atomics in that case?
exit_atomic raises EXP_ATOMIC, which leads to cpu_exec_step_atomic, which grabs
the exclusive lock and then executes the operation in a serial context. This
is expanded inline via do_nonatomic_op_i64.
r~