]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
MIPS: Fix fallback march for SB1
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Sun, 14 Jul 2024 02:52:57 +0000 (10:52 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 15 Jul 2024 16:16:23 +0000 (18:16 +0200)
Fallback march for SB1 should be mips64 instead of mips64r1.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202407111851.LwDasTcp-lkp@intel.com/
Fixes: bfc0a330c1b4 ("MIPS: Fallback CPU -march flag to ISA level if unsupported")
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/Makefile

index 80aecba2489223e31cfd78fd85c9bc924ed82a13..5785a3d5ccfbb5f136f0649e1e23cea4c57ff76f 100644 (file)
@@ -170,7 +170,7 @@ cflags-$(CONFIG_CPU_NEVADA) += $(call cc-option,-march=rm5200,-march=mips4) \
                        -Wa,--trap
 cflags-$(CONFIG_CPU_RM7000)    += $(call cc-option,-march=rm7000,-march=mips4) \
                        -Wa,--trap
-cflags-$(CONFIG_CPU_SB1)       += $(call cc-option,-march=sb1,-march=mips64r1) \
+cflags-$(CONFIG_CPU_SB1)       += $(call cc-option,-march=sb1,-march=mips64) \
                        -Wa,--trap
 cflags-$(CONFIG_CPU_SB1)       += $(call cc-option,-mno-mdmx)
 cflags-$(CONFIG_CPU_SB1)       += $(call cc-option,-mno-mips3d)