From 1df160be13030292e9832d5333418dba127183c4 Mon Sep 17 00:00:00 2001 From: The Tumultuous Unicorn Of Darkness Date: Tue, 4 Apr 2023 20:13:11 +0200 Subject: [PATCH] Fill CPU purpose for AMD in cpuid_identify_amd() --- libcpuid/recog_amd.c | 1 + tests/amd/zen4/ryzen5-raphael.test | 2 +- tests/amd/zen4/ryzen9-raphael.test | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) 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