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:
Mark Ryan 2024-01-26 13:57:33 +00:00
parent ec2aa32eb0
commit e0b610d01f
1 changed files with 6 additions and 1 deletions

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()]);
}