diff --git a/1011-loongarch-Disable-vector-instructions.patch b/1011-loongarch-Disable-vector-instructions.patch new file mode 100644 index 0000000000000000000000000000000000000000..91630d93adcb0a4ba8bc226b8fa1bff4cc9f7f8f --- /dev/null +++ b/1011-loongarch-Disable-vector-instructions.patch @@ -0,0 +1,26 @@ +From f9b4c5a1f6de72482009594937d59f2858b971de Mon Sep 17 00:00:00 2001 +From: Xue Liu +Date: Fri, 17 Jan 2025 12:27:03 +0800 +Subject: [PATCH] loongarch: Disable vector instructions + +Pass the "-mno-lsx" CFLAGS to avoid generating vector instructions +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index fe9ebae..2a6423c 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -953,7 +953,7 @@ if test "x$target_cpu" = xloongarch64; then + TARGET_CCASFLAGS="$TARGET_CCASFLAGS $grub_cv_target_cc_mno_relax" + fi + +- TARGET_CFLAGS="$TARGET_CFLAGS -Wa,-mla-global-with-abs" ++ TARGET_CFLAGS="$TARGET_CFLAGS -Wa,-mla-global-with-abs -mno-lsx" + TARGET_CCASFLAGS="$TARGET_CCASFLAGS -Wa,-mla-global-with-abs" + fi + +-- +2.41.0 + diff --git a/grub.macros b/grub.macros index 5ef8230027381c50f08f6c71395bb368ddd11d63..9ad872bd1c810b2f3e19b28ce237555a5fe739cf 100644 --- a/grub.macros +++ b/grub.macros @@ -342,7 +342,7 @@ git add . \ git commit -a -q -m "%{tarversion} baseline." \ git am --whitespace=nowarn %%{patches} - 2.12-11_2 +- Disable vector instructions for loongarch + * Tue Jan 14 2025 Xue Liu - 2.12-10_2 - Fix the introduced old code - Clear buffer for screen information