From 46947efb83b7302fba1db8740eee49e47fa7932b Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sat, 13 Nov 2021 23:32:26 +0100 Subject: [PATCH] Ignore compiler support for MIPS MSA if the cpu lacks this capability --- Makefile.system | 6 ++++-- param.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile.system b/Makefile.system index 16e8fcbd6..3b55fb104 100644 --- a/Makefile.system +++ b/Makefile.system @@ -1664,8 +1664,10 @@ export HAVE_VFP export HAVE_VFPV3 export HAVE_VFPV4 export HAVE_NEON -export HAVE_MSA -export MSA_FLAGS +ifndef NO_MSA + export HAVE_MSA + export MSA_FLAGS +endif export KERNELDIR export FUNCTION_PROFILE export TARGET_CORE diff --git a/param.h b/param.h index 23f406d74..22f7b83ad 100644 --- a/param.h +++ b/param.h @@ -2884,7 +2884,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define GEMM_DEFAULT_OFFSET_B 0 #define GEMM_DEFAULT_ALIGN (BLASLONG) 0x03fffUL -#ifdef HAVE_MSA +#if defined(HAVE_MSA) && !defined(NO_MSA) #define SGEMM_DEFAULT_UNROLL_M 8 #define SGEMM_DEFAULT_UNROLL_N 8