aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/loongarch/cpu-features.h
diff options
context:
space:
mode:
authorcaiyinyu <caiyinyu@loongson.cn>2023-09-21 09:10:11 +0800
committercaiyinyu <caiyinyu@loongson.cn>2023-09-21 09:10:11 +0800
commit672b91ba1060887aa8897d0b98af83b96d4a52b0 (patch)
tree9d54d7178a4b98c8efb2acfb8c1d89bfafda31c5 /sysdeps/unix/sysv/linux/loongarch/cpu-features.h
parent457bb77255a59c736467d05a6ee9631328fee21b (diff)
downloadglibc-672b91ba1060887aa8897d0b98af83b96d4a52b0.tar
glibc-672b91ba1060887aa8897d0b98af83b96d4a52b0.tar.gz
glibc-672b91ba1060887aa8897d0b98af83b96d4a52b0.tar.bz2
glibc-672b91ba1060887aa8897d0b98af83b96d4a52b0.zip
Revert "LoongArch: Add glibc.cpu.hwcap support."
This reverts commit a53451559dc9cce765ea5bcbb92c4007e058e92b.
Diffstat (limited to 'sysdeps/unix/sysv/linux/loongarch/cpu-features.h')
-rw-r--r--sysdeps/unix/sysv/linux/loongarch/cpu-features.h18
1 files changed, 4 insertions, 14 deletions
diff --git a/sysdeps/unix/sysv/linux/loongarch/cpu-features.h b/sysdeps/unix/sysv/linux/loongarch/cpu-features.h
index 450963cebc..d1a280a5ee 100644
--- a/sysdeps/unix/sysv/linux/loongarch/cpu-features.h
+++ b/sysdeps/unix/sysv/linux/loongarch/cpu-features.h
@@ -19,23 +19,13 @@
#ifndef _CPU_FEATURES_LOONGARCH64_H
#define _CPU_FEATURES_LOONGARCH64_H
-#include <stdint.h>
#include <sys/auxv.h>
-struct cpu_features
- {
- uint64_t hwcap;
- };
+#define SUPPORT_UAL (GLRO (dl_hwcap) & HWCAP_LOONGARCH_UAL)
+#define SUPPORT_LSX (GLRO (dl_hwcap) & HWCAP_LOONGARCH_LSX)
+#define SUPPORT_LASX (GLRO (dl_hwcap) & HWCAP_LOONGARCH_LASX)
-/* Get a pointer to the CPU features structure. */
-extern const struct cpu_features *_dl_larch_get_cpu_features (void)
- __attribute__ ((pure));
-
-#define SUPPORT_UAL (GLRO (dl_larch_cpu_features).hwcap & HWCAP_LOONGARCH_UAL)
-#define SUPPORT_LSX (GLRO (dl_larch_cpu_features).hwcap & HWCAP_LOONGARCH_LSX)
-#define SUPPORT_LASX (GLRO (dl_larch_cpu_features).hwcap & HWCAP_LOONGARCH_LASX)
-#define RTLD_SUPPORT_LSX (GLRO (dl_hwcap) & HWCAP_LOONGARCH_LSX)
-#define RTLD_SUPPORT_LASX (GLRO (dl_hwcap) & HWCAP_LOONGARCH_LASX)
#define INIT_ARCH()
#endif /* _CPU_FEATURES_LOONGARCH64_H */
+