|
From: | Richard Henderson |
Subject: | Re: [Qemu-devel] [PATCH 01/11] target/sh4: Use cmpxchg for movco |
Date: | Thu, 6 Jul 2017 05:25:21 -1000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
On 07/05/2017 02:23 PM, 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<address@hidden> --- target/sh4/cpu.h | 3 ++- target/sh4/translate.c | 56 +++++++++++++++++++++++++++++++++----------------- 2 files changed, 39 insertions(+), 20 deletions(-)
Note to self: missing reset of lock_addr across interrupt and priv change boundaries.
r~
[Prev in Thread] | Current Thread | [Next in Thread] |