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:
@@ -499,7 +499,8 @@ enum cpu_vendor {
|
||||
B_CPU_VENDOR_VIA,
|
||||
B_CPU_VENDOR_IBM,
|
||||
B_CPU_VENDOR_MOTOROLA,
|
||||
B_CPU_VENDOR_NEC
|
||||
B_CPU_VENDOR_NEC,
|
||||
B_CPU_VENDOR_HYGON
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
|
||||
@@ -481,6 +481,7 @@ enum x86_vendors {
|
||||
VENDOR_RISE,
|
||||
VENDOR_TRANSMETA,
|
||||
VENDOR_NSC,
|
||||
VENDOR_HYGON,
|
||||
|
||||
VENDOR_NUM,
|
||||
VENDOR_UNKNOWN,
|
||||
|
||||
@@ -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*))
|
||||
|
||||
Reference in New Issue
Block a user