aboutsummaryrefslogtreecommitdiff
path: root/tcg/loongarch64/tcg-target.h
diff options
context:
space:
mode:
authorJiajie Chen <c@jia.je>2023-09-08 10:21:23 +0800
committerRichard Henderson <richard.henderson@linaro.org>2023-09-16 14:57:10 +0000
commit58f8961285a7dbb1f6b9152b2ff5a11bd1813f04 (patch)
treee7e4e96c92eea9fa348ed980368d90548af9ca7a /tcg/loongarch64/tcg-target.h
parent561b001aef635e47930f4f12647e206c5711cf5f (diff)
downloadqemu-58f8961285a7dbb1f6b9152b2ff5a11bd1813f04.zip
qemu-58f8961285a7dbb1f6b9152b2ff5a11bd1813f04.tar.gz
qemu-58f8961285a7dbb1f6b9152b2ff5a11bd1813f04.tar.bz2
tcg/loongarch64: Implement 128-bit load & store
If LSX is available, use LSX instructions to implement 128-bit load & store when MO_128 is required, otherwise use two 64-bit loads & stores. Signed-off-by: Jiajie Chen <c@jia.je> Message-Id: <20230908022302.180442-17-c@jia.je> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/loongarch64/tcg-target.h')
-rw-r--r--tcg/loongarch64/tcg-target.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcg/loongarch64/tcg-target.h b/tcg/loongarch64/tcg-target.h
index 67b0a95..0301767 100644
--- a/tcg/loongarch64/tcg-target.h
+++ b/tcg/loongarch64/tcg-target.h
@@ -171,7 +171,7 @@ extern bool use_lsx_instructions;
#define TCG_TARGET_HAS_muluh_i64 1
#define TCG_TARGET_HAS_mulsh_i64 1
-#define TCG_TARGET_HAS_qemu_ldst_i128 0
+#define TCG_TARGET_HAS_qemu_ldst_i128 use_lsx_instructions
#define TCG_TARGET_HAS_v64 0
#define TCG_TARGET_HAS_v128 use_lsx_instructions