aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
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) && reg.gpr.eax < 0x80000004) {
- fprintf(stderr, "CPU is not supported\n");
+ if (CPUID(0, &reg) && 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
+}