mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user