x86: identify Hygon vendor

it's a Zen-based CPU: rely on AMD support code.

Change-Id: Ia980a42457575bf8d1130d813310a285bf137691
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3217
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
Jérôme Duval
2020-09-15 20:43:45 +00:00
parent 7c1bcc9cae
commit 357b9d3cbb
7 changed files with 17 additions and 7 deletions
+1 -1
View File
@@ -173,7 +173,7 @@ get_cpu_vendor_string(enum cpu_vendor cpuVendor)
// Should match vendors in OS.h
static const char* vendorStrings[] = {
NULL, "AMD", "Cyrix", "IDT", "Intel", "National Semiconductor", "Rise",
"Transmeta", "VIA", "IBM", "Motorola", "NEC"
"Transmeta", "VIA", "IBM", "Motorola", "NEC", "Hygon"
};
if ((size_t)cpuVendor >= sizeof(vendorStrings) / sizeof(const char*))