From e3b805ca3e3cb65a9d5f1d779e049242cc6beb27 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Fri, 21 Apr 2023 18:57:27 -0400 Subject: Was supposed to check for < 2, not < 0x80000004 --- main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index e1be4f2..1748596 100644 --- a/main.c +++ b/main.c @@ -393,8 +393,8 @@ int main() { struct utsname kinfo; union regs_t reg; - if (CPUID(0, ®) && reg.gpr.eax < 0x80000004) { - fprintf(stderr, "CPU is not supported\n"); + if (CPUID(0, ®) && reg.gpr.eax < 2) { + fprintf(stderr, "CPU is not supported: 0x%08X\n", reg.gpr.eax); exit(1); } @@ -435,4 +435,4 @@ int main() { } return 0; -} \ No newline at end of file +} -- cgit