diff --git a/cpuid_riscv64.c b/cpuid_riscv64.c index e50b9bf8c..e4687945f 100644 --- a/cpuid_riscv64.c +++ b/cpuid_riscv64.c @@ -100,7 +100,7 @@ int detect(void){ fclose(infile); - if (strstr(pmodel, check_c910_str) && strchr(p, 'v')) + if (strstr(pmodel, check_c910_str) && strchr(pisa, 'v')) return CPU_C910V; return CPU_GENERIC;