Skip to content

Commit b0bd49a

Browse files
authored
Add compiler guard around the M4 HAVE_SME property
1 parent 7e44f62 commit b0bd49a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cpuid_arm64.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,9 @@ void get_cpuconfig(void)
772772
break;
773773
case CPU_VORTEXM4:
774774
printf("#define VORTEXM4 \n");
775+
#ifdef __ARM_FEATURE_LOCALLY_STREAMING
775776
printf("#define HAVE_SME 1 \n");
777+
#endif
776778
#ifdef __APPLE__
777779
length64 = sizeof(value64);
778780
sysctlbyname("hw.l1icachesize",&value64,&length64,NULL,0);

0 commit comments

Comments
 (0)