On 11/08/2016 02:25 PM, Laurent Vivier wrote:
Implement CAS using cmpxchg.
Implement CAS2 using helper and either cmpxchg when
the 32bit addresses are consecutive, or with
parallel_cpus+cpu_loop_exit_atomic() otherwise.
Suggested-by: Richard Henderson <[email protected]>
Signed-off-by: Laurent Vivier <[email protected]>
---
target-m68k/helper.h | 2 +
target-m68k/op_helper.c | 109 ++++++++++++++++++++++++++++++++++
target-m68k/translate.c | 153 ++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 264 insertions(+)
Reviewed-by: Richard Henderson <[email protected]>
r~