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.
This commit is contained in:
parent
ec2aa32eb0
commit
e0b610d01f
|
@ -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…
Reference in New Issue