Skip to content

Commit 8f22ac5

Browse files
authored
Add vendor string Shanghai as successor to Centaur
1 parent da623ae commit 8f22ac5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

driver/others/dynamic.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ static int get_vendor(void){
404404
if (!strcmp(vendor.vchar, "GenuineIntel")) return VENDOR_INTEL;
405405
if (!strcmp(vendor.vchar, "AuthenticAMD")) return VENDOR_AMD;
406406
if (!strcmp(vendor.vchar, "CentaurHauls")) return VENDOR_CENTAUR;
407+
if (!strcmp(vendor.vchar, " Shanghai ")) return VENDOR_CENTAUR;
407408
if (!strcmp(vendor.vchar, "HygonGenuine")) return VENDOR_HYGON;
408409

409410
if ((eax == 0) || ((eax & 0x500) != 0)) return VENDOR_INTEL;

0 commit comments

Comments
 (0)