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
1 changed files with 2 additions and 0 deletions

View File

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