[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 45/45] linux-user/aarch64: Add SME related hwcap entries
From: |
Richard Henderson |
Subject: |
[PATCH v4 45/45] linux-user/aarch64: Add SME related hwcap entries |
Date: |
Tue, 28 Jun 2022 09:51:17 +0530 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
linux-user/elfload.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/linux-user/elfload.c b/linux-user/elfload.c
index 163fc8a1ee..a496c37855 100644
--- a/linux-user/elfload.c
+++ b/linux-user/elfload.c
@@ -605,6 +605,18 @@ enum {
ARM_HWCAP2_A64_RNG = 1 << 16,
ARM_HWCAP2_A64_BTI = 1 << 17,
ARM_HWCAP2_A64_MTE = 1 << 18,
+ ARM_HWCAP2_A64_ECV = 1 << 19,
+ ARM_HWCAP2_A64_AFP = 1 << 20,
+ ARM_HWCAP2_A64_RPRES = 1 << 21,
+ ARM_HWCAP2_A64_MTE3 = 1 << 22,
+ ARM_HWCAP2_A64_SME = 1 << 23,
+ ARM_HWCAP2_A64_SME_I16I64 = 1 << 24,
+ ARM_HWCAP2_A64_SME_F64F64 = 1 << 25,
+ ARM_HWCAP2_A64_SME_I8I32 = 1 << 26,
+ ARM_HWCAP2_A64_SME_F16F32 = 1 << 27,
+ ARM_HWCAP2_A64_SME_B16F32 = 1 << 28,
+ ARM_HWCAP2_A64_SME_F32F32 = 1 << 29,
+ ARM_HWCAP2_A64_SME_FA64 = 1 << 30,
};
#define ELF_HWCAP get_elf_hwcap()
@@ -674,6 +686,14 @@ static uint32_t get_elf_hwcap2(void)
GET_FEATURE_ID(aa64_rndr, ARM_HWCAP2_A64_RNG);
GET_FEATURE_ID(aa64_bti, ARM_HWCAP2_A64_BTI);
GET_FEATURE_ID(aa64_mte, ARM_HWCAP2_A64_MTE);
+ GET_FEATURE_ID(aa64_sme, (ARM_HWCAP2_A64_SME |
+ ARM_HWCAP2_A64_SME_F32F32 |
+ ARM_HWCAP2_A64_SME_B16F32 |
+ ARM_HWCAP2_A64_SME_F16F32 |
+ ARM_HWCAP2_A64_SME_I8I32));
+ GET_FEATURE_ID(aa64_sme_f64f64, ARM_HWCAP2_A64_SME_F64F64);
+ GET_FEATURE_ID(aa64_sme_i16i64, ARM_HWCAP2_A64_SME_I16I64);
+ GET_FEATURE_ID(aa64_sme_fa64, ARM_HWCAP2_A64_SME_FA64);
return hwcaps;
}
--
2.34.1
- [PATCH v4 35/45] linux-user/aarch64: Add SM bit to SVE signal context, (continued)
- [PATCH v4 35/45] linux-user/aarch64: Add SM bit to SVE signal context, Richard Henderson, 2022/06/28
- [PATCH v4 37/45] linux-user/aarch64: Do not allow duplicate or short sve records, Richard Henderson, 2022/06/28
- [PATCH v4 38/45] linux-user/aarch64: Verify extra record lock succeeded, Richard Henderson, 2022/06/28
- [PATCH v4 39/45] linux-user/aarch64: Move sve record checks into restore, Richard Henderson, 2022/06/28
- [PATCH v4 36/45] linux-user/aarch64: Tidy target_restore_sigframe error return, Richard Henderson, 2022/06/28
- [PATCH v4 40/45] linux-user/aarch64: Implement SME signal handling, Richard Henderson, 2022/06/28
- [PATCH v4 41/45] linux-user: Rename sve prctls, Richard Henderson, 2022/06/28
- [PATCH v4 42/45] linux-user/aarch64: Implement PR_SME_GET_VL, PR_SME_SET_VL, Richard Henderson, 2022/06/28
- [PATCH v4 43/45] target/arm: Only set ZEN in reset if SVE present, Richard Henderson, 2022/06/28
- [PATCH v4 44/45] target/arm: Enable SME for user-only, Richard Henderson, 2022/06/28
- [PATCH v4 45/45] linux-user/aarch64: Add SME related hwcap entries,
Richard Henderson <=