1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-10 05:03:06 +03:00

x86: Add the test case of __get_cpu_features support for Zhaoxin processors

For the test case of the __get_cpu_features interface, add an item in
cpu_kinds and a switch case for Zhaoxin support.
This commit is contained in:
mayshao-oc
2020-04-26 13:49:44 +08:00
committed by H.J. Lu
parent a98dc92dd1
commit ab54e26415

View File

@@ -38,6 +38,7 @@ static const char * const cpu_kinds[] =
"Unknown", "Unknown",
"Intel", "Intel",
"AMD", "AMD",
"ZHAOXIN",
"Other", "Other",
}; };
@@ -50,6 +51,7 @@ do_test (void)
{ {
case arch_kind_intel: case arch_kind_intel:
case arch_kind_amd: case arch_kind_amd:
case arch_kind_zhaoxin:
case arch_kind_other: case arch_kind_other:
printf ("Vendor: %s\n", cpu_kinds[cpu_features->basic.kind]); printf ("Vendor: %s\n", cpu_kinds[cpu_features->basic.kind]);
printf ("Family: 0x%x\n", cpu_features->basic.family); printf ("Family: 0x%x\n", cpu_features->basic.family);