]> 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)
committerMichael Tokarev <mjt@tls.msk.ru>
Mon, 24 Mar 2025 04:53:41 +0000 (07:53 +0300)
commit73768dae4a50496a389c74e7b3b35138f37cc509
tree3998352a936fe544d8a64e6c9ae56a3874df94a6
parentd83b61f59c809d3447127f880dd65944180ce478
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>
(cherry picked from commit ca2737d6eca7fcc62ecb7a27246837b7c18830fc)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
host/include/loongarch64/host/atomic128-ldst.h
host/include/loongarch64/host/bufferiszero.c.inc
host/include/loongarch64/host/load-extract-al16-al8.h.inc