From 2346d0bdc4c45444e448b4dcdcccde84d1eadae1 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sun, 19 Oct 2025 13:32:54 -0700 Subject: [PATCH] Add HAVE_SME for VortexM4 only with non-gcc compilers --- getarch.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/getarch.c b/getarch.c index 48b5f53ce..8b7024809 100644 --- a/getarch.c +++ b/getarch.c @@ -1659,11 +1659,19 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define ARCHITECTURE "ARM64" #define SUBARCHITECTURE "VORTEXM4" #define SUBDIRNAME "arm64" +#ifdef __clang__ #define ARCHCONFIG "-DVORTEXM4 " \ "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \ "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \ "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=32 " \ "-DHAVE_VFPV4 -DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON -DHAVE_SME -DARMV8" +#else +#define ARCHCONFIG "-DVORTEX " \ + "-DL1_DATA_SIZE=32768 -DL1_DATA_LINESIZE=64 " \ + "-DL2_SIZE=262144 -DL2_LINESIZE=64 " \ + "-DDTB_DEFAULT_ENTRIES=64 -DDTB_SIZE=4096 -DL2_ASSOCIATIVE=32 " \ + "-DHAVE_VFPV4 -DHAVE_VFPV3 -DHAVE_VFP -DHAVE_NEON -DARMV8" +#endif #define LIBNAME "vortexm4" #define CORENAME "VORTEXM4" #endif