[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 05/24] util/loongarch64: Detect LASX vector support
From: |
Richard Henderson |
Subject: |
[PULL 05/24] util/loongarch64: Detect LASX vector support |
Date: |
Wed, 19 Jun 2024 13:59:33 -0700 |
Reviewed-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
host/include/loongarch64/host/cpuinfo.h | 1 +
util/cpuinfo-loongarch.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/host/include/loongarch64/host/cpuinfo.h
b/host/include/loongarch64/host/cpuinfo.h
index fab664a10b..d7bf27501d 100644
--- a/host/include/loongarch64/host/cpuinfo.h
+++ b/host/include/loongarch64/host/cpuinfo.h
@@ -8,6 +8,7 @@
#define CPUINFO_ALWAYS (1u << 0) /* so cpuinfo is nonzero */
#define CPUINFO_LSX (1u << 1)
+#define CPUINFO_LASX (1u << 2)
/* Initialized with a constructor. */
extern unsigned cpuinfo;
diff --git a/util/cpuinfo-loongarch.c b/util/cpuinfo-loongarch.c
index 08b6d7460c..bb1f7f698b 100644
--- a/util/cpuinfo-loongarch.c
+++ b/util/cpuinfo-loongarch.c
@@ -29,6 +29,7 @@ unsigned __attribute__((constructor)) cpuinfo_init(void)
info = CPUINFO_ALWAYS;
info |= (hwcap & HWCAP_LOONGARCH_LSX ? CPUINFO_LSX : 0);
+ info |= (hwcap & HWCAP_LOONGARCH_LASX ? CPUINFO_LASX : 0);
cpuinfo = info;
return info;
--
2.34.1
- [PULL 00/24] tcg patch queue, Richard Henderson, 2024/06/19
- [PULL 04/24] tcg/loongarch64: Support TCG_TYPE_V64, Richard Henderson, 2024/06/19
- [PULL 05/24] util/loongarch64: Detect LASX vector support,
Richard Henderson <=
- [PULL 02/24] tcg/loongarch64: Use fp load/store for I32 and I64 into vector regs, Richard Henderson, 2024/06/19
- [PULL 03/24] tcg/loongarch64: Handle i32 and i64 moves between gr and fr, Richard Henderson, 2024/06/19
- [PULL 01/24] tcg/loongarch64: Import LASX, FP insns, Richard Henderson, 2024/06/19
- [PULL 10/24] tcg/loongarch64: Support LASX in tcg_out_dupi_vec, Richard Henderson, 2024/06/19
- [PULL 08/24] tcg/loongarch64: Support LASX in tcg_out_dupm_vec, Richard Henderson, 2024/06/19
- [PULL 09/24] tcg/loongarch64: Use tcg_out_dup_vec in tcg_out_dupi_vec, Richard Henderson, 2024/06/19
- [PULL 12/24] tcg/loongarch64: Support LASX in tcg_out_addsub_vec, Richard Henderson, 2024/06/19
- [PULL 06/24] tcg/loongarch64: Simplify tcg_out_dup_vec, Richard Henderson, 2024/06/19
- [PULL 07/24] tcg/loongarch64: Support LASX in tcg_out_dup_vec, Richard Henderson, 2024/06/19
- [PULL 11/24] tcg/loongarch64: Simplify tcg_out_addsub_vec, Richard Henderson, 2024/06/19