From 095067efdf68c8061d6f99a21a0300841bede999 Mon Sep 17 00:00:00 2001 From: caiyinyu Date: Fri, 15 Sep 2023 17:35:19 +0800 Subject: LoongArch: Add glibc.cpu.hwcap support. The current IFUNC selection is always using the most recent features which are available via AT_HWCAP. But in some scenarios it is useful to adjust this selection. The environment variable: GLIBC_TUNABLES=glibc.cpu.hwcaps=-xxx,yyy,zzz,.... can be used to enable HWCAP feature yyy, disable HWCAP feature xxx, where the feature name is case-sensitive and has to match the ones used in sysdeps/loongarch/cpu-tunables.c. Signed-off-by: caiyinyu --- manual/tunables.texi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'manual') diff --git a/manual/tunables.texi b/manual/tunables.texi index 4a7d04dc0d..baaf751721 100644 --- a/manual/tunables.texi +++ b/manual/tunables.texi @@ -525,7 +525,10 @@ a CPU arch-level like @code{z13} instead of single HWCAP and STFLE features. On powerpc, the supported HWCAP and HWCAP2 features can be found in @code{sysdeps/powerpc/dl-procinfo.c}. -This tunable is specific to i386, x86-64, s390x and powerpc. +On loongarch, the supported HWCAP features can be found in +@code{sysdeps/loongarch/cpu-tunables.c}. + +This tunable is specific to i386, x86-64, s390x, powerpc and loongarch. @end deftp @deftp Tunable glibc.cpu.cached_memopt -- cgit 1.4.1