]> git.ipfire.org Git - thirdparty/qemu.git/commit
host/include/loongarch64: Fix inline assembly compatibility with Clang
authorYao Zi <ziyao@disroot.org>
Fri, 14 Mar 2025 03:31:51 +0000 (03:31 +0000)
committerBibo Mao <maobibo@loongson.cn>
Fri, 21 Mar 2025 03:31:56 +0000 (11:31 +0800)
commitca2737d6eca7fcc62ecb7a27246837b7c18830fc
tree03a9294f53c8f991be24fa9a3f38456f5ea08b27
parent1dae461a913f9da88df05de6e2020d3134356f2e
host/include/loongarch64: Fix inline assembly compatibility with Clang

Clang on LoongArch only accepts fp register names in the dollar-prefixed
form, while GCC allows omitting the dollar. Change registers in ASM
clobbers to the dollar-prefixed form to make user emulators buildable
with Clang on loongarch64. No functional change invovled.

Cc: qemu-stable@nongnu.org
Fixes: adc8467e697 ("host/include/loongarch64: Add atomic16 load and store")
Signed-off-by: Yao Zi <ziyao@disroot.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
host/include/loongarch64/host/atomic128-ldst.h.inc
host/include/loongarch64/host/bufferiszero.c.inc
host/include/loongarch64/host/load-extract-al16-al8.h.inc