# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/glibc/hotfix-x86-Centaur.patch # Copyright (C) 2024 - 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- --- glibc-2.39/sysdeps/x86/dl-cacheinfo.h.vanilla 2024-02-17 22:42:37.049821897 +0100 +++ glibc-2.39/sysdeps/x86/dl-cacheinfo.h 2024-02-17 22:56:39.455740728 +0100 @@ -837,7 +837,7 @@ get_common_cache_info (&shared, &shared_per_thread, &threads, core); } - else if (cpu_features->basic.kind == arch_kind_zhaoxin) + else if (cpu_features->basic.kind == arch_kind_zhaoxin && cpu_features->basic.max_cpuid >= 4) { data = handle_zhaoxin (_SC_LEVEL1_DCACHE_SIZE); core = handle_zhaoxin (_SC_LEVEL2_CACHE_SIZE);