Re: [Qemu-devel] [PATCH v2 01/27] target/sh4: Use cmpxchg for movco

2017-07-16 Thread Aurelien Jarno
On 2017-07-16 01:22, Aurelien Jarno wrote: > On 2017-07-06 16:20, Richard Henderson wrote: > > As for other targets, cmpxchg isn't quite right for ll/sc, > > suffering from an ABA race, but is sufficient to implement > > portable atomic operations. > > > > Signed-off-by: Richard Henderson

Re: [Qemu-devel] [PATCH v2 01/27] target/sh4: Use cmpxchg for movco

2017-07-15 Thread Aurelien Jarno
On 2017-07-06 16:20, Richard Henderson wrote: > As for other targets, cmpxchg isn't quite right for ll/sc, > suffering from an ABA race, but is sufficient to implement > portable atomic operations. > > Signed-off-by: Richard Henderson > --- > target/sh4/cpu.h | 3 ++- >

[Qemu-devel] [PATCH v2 01/27] target/sh4: Use cmpxchg for movco

2017-07-06 Thread Richard Henderson
As for other targets, cmpxchg isn't quite right for ll/sc, suffering from an ABA race, but is sufficient to implement portable atomic operations. Signed-off-by: Richard Henderson --- target/sh4/cpu.h | 3 ++- target/sh4/translate.c | 56