Userland EFL binaries using Longsoon SIMD instructions have the
HWCAP_LOONGSON_MMI bit set. Binaries compiled for Longsoon 3E
have the HWCAP_LOONGSON_EXT bit set for the LQ / SQ instructions.

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
 linux-user/elfload.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/linux-user/elfload.c b/linux-user/elfload.c
index 17371f8b8cd..be82fcb2c0a 100644
--- a/linux-user/elfload.c
+++ b/linux-user/elfload.c
@@ -1012,6 +1012,8 @@ static uint32_t get_elf_hwcap(void)
 
     GET_FEATURE(ISA_MIPS32R6 | ISA_MIPS64R6, HWCAP_MIPS_R6);
     GET_FEATURE(ASE_MSA, HWCAP_MIPS_MSA);
+    GET_FEATURE(ASE_LMMI, HWCAP_LOONGSON_MMI);
+    GET_FEATURE(ASE_LEXT, HWCAP_LOONGSON_EXT);
 
 #undef GET_FEATURE
 
-- 
2.26.2


Reply via email to