aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux
diff options
context:
space:
mode:
authorJiamei Xie <xiejiamei@hygon.cn>2026-02-04 09:46:07 +0100
committerFlorian Weimer <fweimer@redhat.com>2026-02-04 09:46:07 +0100
commit22f9d87fcf0757bd0050e34c0f3a1441d685228b (patch)
tree91bcbdccffe5f9357d4bbb14617513e5b43f485e /sysdeps/unix/sysv/linux
parentfff40098b0716bdd5b1dcd848ff25a2da6c33be2 (diff)
downloadglibc-master.zip
glibc-master.tar.gz
glibc-master.tar.bz2
x86: Fix for cache computation on Hygon under hypervisorsHEADmaster
On Hygon CPUs, glibc currently relies on CPUID leaf 0x8000001D to compute cache parameters. This works correctly on bare-metal systems. However, under some hypervisors (e.g. QEMU with -cpu qemu64), the maximum supported extended CPUID leaf is only 0x8000000A, and CPUID 0x8000001D is not exposed. In this case, cache information computed via 0x8000001D is zeroed out. This patch introduces legacy fallback of cache computation based on CPUID 0x80000005 and 0x80000006, consistent with the AMD implementation, to restore correct cache information under such environments. Signed-off-by: Jiamei Xie <xiejiamei@hygon.cn> Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux')
0 files changed, 0 insertions, 0 deletions