Browse Source

Harmonize riscv64 LIBNAME for forced and non-forced targets

The forced values for LIBNAME were either riscv64_generic or c910v
while the non-forced value of LIBNAME was always riscv64.
tags/v0.3.27
Mark Ryan 1 year ago
parent
commit
e0b610d01f
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      cpuid_riscv64.c

+ 6
- 1
cpuid_riscv64.c View File

@@ -78,6 +78,11 @@ static char *cpuname[] = {
"C910V"
};

static char *cpuname_lower[] = {
"riscv64_generic",
"c910v"
};

int detect(void){
#ifdef __linux
FILE *infile;
@@ -146,5 +151,5 @@ void get_cpuconfig(void){
}

void get_libname(void){
printf("riscv64\n");
printf("%s", cpuname_lower[detect()]);
}

Loading…
Cancel
Save