diff --git a/libcpuid/recog_amd.c b/libcpuid/recog_amd.c index 4dde2e45..95d66e60 100644 --- a/libcpuid/recog_amd.c +++ b/libcpuid/recog_amd.c @@ -639,6 +639,7 @@ int cpuid_identify_amd(struct cpu_raw_data_t* raw, struct cpu_id_t* data, struct decode_amd_cache_info(raw, data); decode_amd_number_of_cores(raw, data); decode_amd_codename(data, internal); + data->purpose = cpuid_identify_purpose_amd(raw); return 0; } diff --git a/tests/amd/zen4/ryzen5-raphael.test b/tests/amd/zen4/ryzen5-raphael.test index 0d9200ea..0f94f115 100644 --- a/tests/amd/zen4/ryzen5-raphael.test +++ b/tests/amd/zen4/ryzen5-raphael.test @@ -948,7 +948,7 @@ CPUID 80000028: 00000000-00000000-00000000-00000000 CPUID 8FFFFFFF: 00000000-00000000-00000000-00000000 -------------------------------------------------------------------------------- x86 -general +performance 15 1 2 diff --git a/tests/amd/zen4/ryzen9-raphael.test b/tests/amd/zen4/ryzen9-raphael.test index 863f22bc..f43b1b6d 100644 --- a/tests/amd/zen4/ryzen9-raphael.test +++ b/tests/amd/zen4/ryzen9-raphael.test @@ -1896,7 +1896,7 @@ CPUID 80000028: 00000000-00000000-00000000-00000000 CPUID 8FFFFFFF: 00000000-00000000-00000000-00000000 -------------------------------------------------------------------------------- x86 -general +performance 15 1 2