diff options
author | Jiajie Chen <c@jia.je> | 2023-09-08 10:21:23 +0800 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-09-16 14:57:10 +0000 |
commit | 58f8961285a7dbb1f6b9152b2ff5a11bd1813f04 (patch) | |
tree | e7e4e96c92eea9fa348ed980368d90548af9ca7a /tcg/loongarch64/tcg-target.h | |
parent | 561b001aef635e47930f4f12647e206c5711cf5f (diff) | |
download | qemu-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.h | 2 |
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 |