We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec2aa32 commit e0b610dCopy full SHA for e0b610d
1 file changed
cpuid_riscv64.c
@@ -78,6 +78,11 @@ static char *cpuname[] = {
78
"C910V"
79
};
80
81
+static char *cpuname_lower[] = {
82
+ "riscv64_generic",
83
+ "c910v"
84
+};
85
+
86
int detect(void){
87
#ifdef __linux
88
FILE *infile;
@@ -146,5 +151,5 @@ void get_cpuconfig(void){
146
151
}
147
152
148
153
void get_libname(void){
149
- printf("riscv64\n");
154
+ printf("%s", cpuname_lower[detect()]);
150
155
0 commit comments