Merge pull request #2 from b-m-f/master

Adds support for Ryzen 5000 (Zen3)
This commit is contained in:
Anthony Wang 2021-04-01 13:31:39 -05:00 committed by GitHub
commit f7f045b31a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,7 @@
#define AMD_STRING "AuthenticAMD"
#define ZEN_FAMILY 0x17
#define ZEN3_FAMILY 0x19
// AMD PPR = https://www.amd.com/system/files/TechDocs/54945_PPR_Family_17h_Models_00h-0Fh.pdf
@ -31,7 +32,7 @@ gboolean check_zen() {
__get_cpuid(1, &eax, &ebx, &ecx, &edx);
ext_family = ((eax >> 8) & 0xF) + ((eax >> 20) & 0xFF);
if (ext_family != ZEN_FAMILY){
if (ext_family != ZEN_FAMILY && ext_family != ZEN3_FAMILY){
return FALSE;
}