PowerPC: Influence cpu/arch hwcap features via GLIBC_TUNABLES
commit21841f0d562f0e944c4d267a28cc3ebd19c847e9
authorMahesh Bodapati <bmahi496@linux.ibm.com>
Tue, 1 Aug 2023 12:41:17 +0000 (1 07:41 -0500)
committerRajalakshmi Srinivasaraghavan <rajis@linux.ibm.com>
Tue, 1 Aug 2023 12:41:17 +0000 (1 07:41 -0500)
tree30b6e0831da1a801e96c91b5c2781312ce2c4624
parent5c37d2065286d3db7b974266a3002bb5747d2e5d
PowerPC: Influence cpu/arch hwcap features via GLIBC_TUNABLES

This patch enables the option to influence hwcaps used by PowerPC.
The environment variable, GLIBC_TUNABLES=glibc.cpu.hwcaps=-xxx,yyy,-zzz....,
can be used to enable CPU/ARCH feature yyy, disable CPU/ARCH feature xxx
and zzz, where the feature name is case-sensitive and has to match the ones
mentioned in the file{sysdeps/powerpc/dl-procinfo.c}.

Note that the hwcap tunables only used in the IFUNC selection.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
13 files changed:
manual/tunables.texi
sysdeps/powerpc/cpu-features.c [deleted file]
sysdeps/powerpc/cpu-features.h [deleted file]
sysdeps/powerpc/dl-tunables.list
sysdeps/powerpc/hwcapinfo.c
sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
sysdeps/powerpc/powerpc64/dl-machine.h
sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
sysdeps/unix/sysv/linux/powerpc/Makefile
sysdeps/unix/sysv/linux/powerpc/cpu-features.c [new file with mode: 0644]
sysdeps/unix/sysv/linux/powerpc/cpu-features.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/powerpc/tst-hwcap-tunables.c [new file with mode: 0644]