From 7a025c55bf92e5b22404502e1faf188f38c42474 Mon Sep 17 00:00:00 2001 From: sbski <37050207+sbski@users.noreply.github.com> Date: Fri, 5 Feb 2021 10:33:05 -0600 Subject: [PATCH] Update cpuid.c --- lib/cpuid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cpuid.c b/lib/cpuid.c index 79c83f38..76aef689 100644 --- a/lib/cpuid.c +++ b/lib/cpuid.c @@ -46,7 +46,7 @@ enum ryzen_family cpuid_get_family() family = ((regs[0] >> 8) & 0xf) + ((regs[0] >> 20) & 0xff); model = ((regs[0] >> 4) & 0xf) | ((regs[0] >> 12) & 0xf0); - if (family != 0x17 || family != 0x19) { + if (family != 0x17 && family != 0x19) { printf("Not Zen processor, won't work\n"); return FAM_UNKNOWN; }