glibc/sysdeps/x86/bits
Adhemerval Zanella 469761eac8 elf: Fix tst-cpu-features-cpuinfo on some AMD systems (BZ #28090)
The SSBD feature is implemented in 2 different ways on AMD processors:
newer systems (Zen3) provides AMD_SSBD (function 8000_0008, EBX[24]),
while older system provides AMD_VIRT_SSBD (function 8000_0008, EBX[25]).
However for AMD_VIRT_SSBD, kernel shows both 'ssdb' and 'virt_ssdb' on
/proc/cpuinfo; while for AMD_SSBD only 'ssdb' is provided.

This now check is AMD_SSBD is set to check for 'ssbd', otherwise check
if AMD_VIRT_SSDB is set to check for 'virt_ssbd'.

Checked on x86_64-linux-gnu on a Ryzen 9 5900x.

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
2021-07-19 14:12:29 -03:00
..
platform elf: Fix tst-cpu-features-cpuinfo on some AMD systems (BZ #28090) 2021-07-19 14:12:29 -03:00
endianness.h Split up endian.h to minimize exposure of BYTE_ORDER. 2019-10-01 14:54:46 -07:00
floatn.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
flt-eval-method.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
fp-logb.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
indirect-return.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
link.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
setjmp.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
wordsize.h Define wordsize.h macros everywhere 2016-11-04 09:37:44 -07:00