Skip to content

Commit e0b610d

Browse files
committed
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.
1 parent ec2aa32 commit e0b610d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cpuid_riscv64.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ static char *cpuname[] = {
7878
"C910V"
7979
};
8080

81+
static char *cpuname_lower[] = {
82+
"riscv64_generic",
83+
"c910v"
84+
};
85+
8186
int detect(void){
8287
#ifdef __linux
8388
FILE *infile;
@@ -146,5 +151,5 @@ void get_cpuconfig(void){
146151
}
147152

148153
void get_libname(void){
149-
printf("riscv64\n");
154+
printf("%s", cpuname_lower[detect()]);
150155
}

0 commit comments

Comments
 (0)