On 11/03/2016 08:07 AM, Laurent Vivier wrote:
Implement real atomic tas:

    When (Rn) = 0, 1 -> T
    Otherwise, 0 -> T
    In both cases, 1 -> MSB of (Rn)

using atomic_fetch_or_i32() and setcondi_i32().

Tested with image from:
http://wiki.qemu.org/download/sh-test-0.2.tar.bz2

This image contains a "tas_test" that runs without
error with this change.

Signed-off-by: Laurent Vivier <laur...@vivier.eu>
---
v2:
- don't use helper but atomic_fetch_or_i32
  Thank yo

Reviewed-by: Richard Henderson <r...@twiddle.net>


r~

Reply via email to