Fix compilation
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Thu, 19 May 2022 16:57:46 +0000 (18:57 +0200)
committerGitHub <noreply@github.com>
Thu, 19 May 2022 16:57:46 +0000 (18:57 +0200)
cpuid_riscv64.c

index e50b9bf..e468794 100644 (file)
@@ -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;