Adds support for Ryzen 5000 (Zen3)

This commit is contained in:
b-m-f 2021-02-25 20:59:48 +01:00
parent fa17e94b30
commit ae6e53ed35
No known key found for this signature in database
GPG key ID: A06ED08FD4021FE4

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;
}