tcg: Introduce atomic helpers for integer min/max
commit5507c2bf35aa6b4705939349184e71afd5e058b2
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 10 May 2018 17:10:57 +0000 (10 18:10 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 10 May 2018 17:10:57 +0000 (10 18:10 +0100)
tree85ee21ba5797bf6ad3123e8e9454290ebd8cb86a
parent426afc3bd94a2c06b06652010d0802d84809b53b
tcg: Introduce atomic helpers for integer min/max

Given that this atomic operation will be used by both risc-v
and aarch64, let's not duplicate code across the two targets.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20180508151437.4232-5-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
accel/tcg/atomic_template.h
accel/tcg/tcg-runtime.h
tcg/tcg-op.c
tcg/tcg-op.h
tcg/tcg.h