diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc index a6a0b683c..c461bbc75 100644 --- a/winsup/cygwin/fhandler_proc.cc +++ b/winsup/cygwin/fhandler_proc.cc @@ -706,7 +706,8 @@ format_proc_cpuinfo (void *, char *&destbuf) /* Vendor identification. */ bool is_amd = false, is_intel = false; - if (!strcmp ((char*)vendor_id, "AuthenticAMD")) + if (!strcmp ((char*)vendor_id, "AuthenticAMD") + || !strcmp((char*)vendor_id, "HygonGenuine")) is_amd = true; else if (!strcmp ((char*)vendor_id, "GenuineIntel")) is_intel = true; diff --git a/winsup/cygwin/sysconf.cc b/winsup/cygwin/sysconf.cc index 216e5142f..3440c09ee 100644 --- a/winsup/cygwin/sysconf.cc +++ b/winsup/cygwin/sysconf.cc @@ -486,7 +486,8 @@ get_cpu_cache (int in) vendor_id[3] = 0; if (!strcmp ((char*) vendor_id, "GenuineIntel")) return get_cpu_cache_intel (in, maxf & 0xffff); - else if (!strcmp ((char*)vendor_id, "AuthenticAMD")) + else if (!strcmp ((char*)vendor_id, "AuthenticAMD") + || !strcmp((char*)vendor_id, "HygonGenuine")) { uint32_t maxe = 0, unused; cpuid (&maxe, &unused, &unused, &unused, 0x80000000);