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

2017-07-18 Thread Richard Henderson
On 07/18/2017 10:19 AM, Aurelien Jarno wrote: On 2017-07-18 10:02, 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 --- V2: Clear lock_add

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

2017-07-18 Thread Aurelien Jarno
On 2017-07-18 10:02, 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 > > --- > V2: Clear lock_addr in rte, do_interrupt, syscall e

[Qemu-devel] [PATCH v3 01/30] target/sh4: Use cmpxchg for movco

2017-07-18 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 --- V2: Clear lock_addr in rte, do_interrupt, syscall entry, & signal delivery. Fix movli to tollerate overlap be