We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c8d05aa + f3b51ec commit 4d61e45Copy full SHA for 4d61e45
cpuid_mips64.c
@@ -104,17 +104,17 @@ int detect(void){
104
}
105
106
fclose(infile);
107
- if(p != NULL){
108
- if (strstr(p, "Loongson-3A3000") || strstr(p, "Loongson-3B3000")){
109
- return CPU_LOONGSON3R3;
110
- }else if(strstr(p, "Loongson-3A4000") || strstr(p, "Loongson-3B4000")){
111
- return CPU_LOONGSON3R4;
112
- } else{
113
- return CPU_SICORTEX;
+ if (p != NULL){
+ if (strstr(p, "Loongson-3A3000") || strstr(p, "Loongson-3B3000")){
+ return CPU_LOONGSON3R3;
+ } else if (strstr(p, "Loongson-3A4000") || strstr(p, "Loongson-3B4000")){
+ return CPU_LOONGSON3R4;
+ } else{
+ return CPU_SICORTEX;
114
+ }
115
116
#endif
117
return CPU_UNKNOWN;
- }
118
119
120
char *get_corename(void){
0 commit comments