Re: [PATCH 3/3] linux-user/arm: Implement __kernel_cmpxchg64 with host atomics

2022-03-22 Thread Laurent Vivier
Le 15/03/2022 à 19:31, Richard Henderson a écrit : On 3/15/22 11:18, Peter Maydell wrote: -segv: -    end_exclusive(); -    /* We get the PC of the entry address - which is as good as anything, -   on a real kernel what you get depends on which mode it uses. */ This comment about the PC th

Re: [PATCH 3/3] linux-user/arm: Implement __kernel_cmpxchg64 with host atomics

2022-03-15 Thread Richard Henderson
On 3/15/22 11:18, Peter Maydell wrote: -segv: -end_exclusive(); -/* We get the PC of the entry address - which is as good as anything, - on a real kernel what you get depends on which mode it uses. */ This comment about the PC the guest signal handler is going to see when we take

Re: [PATCH 3/3] linux-user/arm: Implement __kernel_cmpxchg64 with host atomics

2022-03-15 Thread Peter Maydell
On Mon, 14 Mar 2022 at 04:46, Richard Henderson wrote: > > If CONFIG_ATOMIC64, we can use a host cmpxchg and provide > atomicity across processes; otherwise we have no choice but > to continue using start/end_exclusive. > > Signed-off-by: Richard Henderson > -segv: > -end_exclusive(); > -

[PATCH 3/3] linux-user/arm: Implement __kernel_cmpxchg64 with host atomics

2022-03-13 Thread Richard Henderson
If CONFIG_ATOMIC64, we can use a host cmpxchg and provide atomicity across processes; otherwise we have no choice but to continue using start/end_exclusive. Signed-off-by: Richard Henderson --- linux-user/arm/cpu_loop.c | 79 +++ 1 file changed, 38 insertions(