Skip to content

Commit 2a203ee

Browse files
authored
Make HAVE_MSA describe cpu capability, NO_MSA software/env
1 parent 31fd13d commit 2a203ee

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

cpuid_mips64.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,9 @@ void get_cpuconfig(void){
208208
printf("#define DTB_SIZE 4096\n");
209209
printf("#define L2_ASSOCIATIVE 8\n");
210210
}
211-
if (!get_feature("msa")) printf("#define NO_MSA\n");
211+
#ifndef NO_MSA
212+
if (get_feature("msa")) printf("#define HAVE_MSA\n");
213+
#endif
212214
}
213215

214216
void get_libname(void){

0 commit comments

Comments
 (0)