OSDN Git Service

tcg: add early clober modifier in atomic16_cmpxchg on aarch64
authorCatherine Ho <catherine.hecx@gmail.com>
Wed, 30 Jan 2019 08:59:54 +0000 (03:59 -0500)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 6 Feb 2019 03:38:39 +0000 (03:38 +0000)
commit7400d6938c6d455c4eba2b80c06d60c8fa5c5ba3
treef0d83ba00d7b2ac5970dbe699cb724f500824362
parent47994e16b1d66411953623e7c0bf0cdcd50bd507
tcg: add early clober modifier in atomic16_cmpxchg on aarch64

Without this patch, gcc might up the Input/Output registers and
cause unpredictable error.

Fixes: 1ec182c33379 ("target/arm: Convert to HAVE_CMPXCHG128")

Signed-off-by: Catherine Ho <catherine.hecx@gmail.com>
Message-Id: <1548838794-23757-1-git-send-email-catherine.hecx@gmail.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
include/qemu/atomic128.h