]> git.ipfire.org Git - thirdparty/glibc.git/commit
LoongArch: Add glibc.cpu.hwcap support.
authorcaiyinyu <caiyinyu@loongson.cn>
Fri, 15 Sep 2023 09:35:19 +0000 (17:35 +0800)
committercaiyinyu <caiyinyu@loongson.cn>
Wed, 24 Apr 2024 10:22:38 +0000 (18:22 +0800)
commit095067efdf68c8061d6f99a21a0300841bede999
tree6632c0cb08991fbd2c08809f24320493687c81a6
parentf4724843ada64a51d66f65d3199fe431f9d4c254
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 <caiyinyu@loongson.cn>
13 files changed:
manual/tunables.texi
sysdeps/loongarch/Makefile
sysdeps/loongarch/cpu-tunables.c [new file with mode: 0644]
sysdeps/loongarch/dl-get-cpu-features.c [new file with mode: 0644]
sysdeps/loongarch/dl-machine.h
sysdeps/loongarch/dl-tunables.list [new file with mode: 0644]
sysdeps/loongarch/lp64/multiarch/dl-symbol-redir-ifunc.h
sysdeps/loongarch/tst-hwcap-tunables.c [new file with mode: 0644]
sysdeps/unix/sysv/linux/loongarch/cpu-features.c [new file with mode: 0644]
sysdeps/unix/sysv/linux/loongarch/cpu-features.h
sysdeps/unix/sysv/linux/loongarch/dl-procinfo.c [new file with mode: 0644]
sysdeps/unix/sysv/linux/loongarch/dl-sysdep.c [new file with mode: 0644]
sysdeps/unix/sysv/linux/loongarch/libc-start.c [new file with mode: 0644]