@@ -125,8 +125,13 @@ extern gotoblas_t gotoblas_THUNDERX2T99;
125125extern gotoblas_t gotoblas_TSV110 ;
126126extern gotoblas_t gotoblas_EMAG8180 ;
127127extern gotoblas_t gotoblas_NEOVERSEN1 ;
128+ #ifndef NO_SVE
128129extern gotoblas_t gotoblas_NEOVERSEV1 ;
129130extern gotoblas_t gotoblas_NEOVERSEN2 ;
131+ #else
132+ #define gotoblas_NEOVERSEV1 gotoblas_ARMV8
133+ #define gotoblas_NEOVERSEN2 gotoblas_ARMV8
134+ #endif
130135extern gotoblas_t gotoblas_THUNDERX3T110 ;
131136extern gotoblas_t gotoblas_CORTEXA55 ;
132137#endif
@@ -237,7 +242,7 @@ static gotoblas_t *get_coretype(void) {
237242 p = (char * ) NULL ;
238243 infile = fopen ("/sys/devices/system/cpu/cpu0/regs/identification/midr_el1" ,"r" );
239244 if (!infile ) return NULL ;
240- fgets (buffer , sizeof (buffer ), infile );
245+ ( void ) fgets (buffer , sizeof (buffer ), infile );
241246 midr_el1 = strtoul (buffer ,NULL ,16 );
242247 fclose (infile );
243248#else
@@ -274,10 +279,12 @@ static gotoblas_t *get_coretype(void) {
274279 return & gotoblas_CORTEXA73 ;
275280 case 0xd0c : // Neoverse N1
276281 return & gotoblas_NEOVERSEN1 ;
282+ #ifndef NO_SVE
277283 case 0xd49 :
278284 return & gotoblas_NEOVERSEN2 ;
279285 case 0xd40 :
280286 return & gotoblas_NEOVERSEV1 ;
287+ #endif
281288 case 0xd05 : // Cortex A55
282289 return & gotoblas_CORTEXA55 ;
283290 }
0 commit comments