From 23b6674ba1fdd9a8082fc00327fd14847b1ddd9d 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/ryzen9-phoenix-h.test | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libcpuid/recog_amd.c b/libcpuid/recog_amd.c index 3f9d0d0..661555d 100644 --- a/libcpuid/recog_amd.c +++ b/libcpuid/recog_amd.c @@ -677,6 +677,7 @@ int cpuid_identify_amd(struct cpu_raw_data_t* raw, struct cpu_id_t* data, struct decode_amd_number_of_cores(raw, data); decode_amd_codename(data, internal); decode_architecture_version_x86(data); + data->purpose = cpuid_identify_purpose_amd(raw); return 0; } diff --git a/tests/amd/zen4/ryzen9-phoenix-h.test b/tests/amd/zen4/ryzen9-phoenix-h.test index 7e3af85..05efc24 100644 --- a/tests/amd/zen4/ryzen9-phoenix-h.test +++ b/tests/amd/zen4/ryzen9-phoenix-h.test @@ -1281,7 +1281,7 @@ CPUID 8FFFFFFF: 00000000-00000000-00000000-00000000 -------------------------------------------------------------------------------- x86 x86-64-v3 -general +performance 15 4 1