Skip to content

Commit

Permalink
Fill CPU purpose for AMD in cpuid_identify_amd()
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTumultuousUnicornOfDarkness committed Apr 5, 2023
1 parent cec2e4d commit 1df160b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions libcpuid/recog_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/amd/zen4/ryzen5-raphael.test
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ CPUID 80000028: 00000000-00000000-00000000-00000000
CPUID 8FFFFFFF: 00000000-00000000-00000000-00000000
--------------------------------------------------------------------------------
x86
general
performance
15
1
2
Expand Down
2 changes: 1 addition & 1 deletion tests/amd/zen4/ryzen9-raphael.test
Original file line number Diff line number Diff line change
Expand Up @@ -1896,7 +1896,7 @@ CPUID 80000028: 00000000-00000000-00000000-00000000
CPUID 8FFFFFFF: 00000000-00000000-00000000-00000000
--------------------------------------------------------------------------------
x86
general
performance
15
1
2
Expand Down

0 comments on commit 1df160b

Please sign in to comment.