diff options
| author | Jiamei Xie <xiejiamei@hygon.cn> | 2026-02-04 09:46:07 +0100 |
|---|---|---|
| committer | Florian Weimer <fweimer@redhat.com> | 2026-02-04 09:46:07 +0100 |
| commit | 22f9d87fcf0757bd0050e34c0f3a1441d685228b (patch) | |
| tree | 91bcbdccffe5f9357d4bbb14617513e5b43f485e /stdio-common/bits | |
| parent | fff40098b0716bdd5b1dcd848ff25a2da6c33be2 (diff) | |
| download | glibc-master.zip glibc-master.tar.gz glibc-master.tar.bz2 | |
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 'stdio-common/bits')
0 files changed, 0 insertions, 0 deletions
