Skip to content

Commit 22dd238

Browse files
FlyGoatgregkh
authored andcommitted
MIPS: Loongson2ef: Disable Loongson MMI instructions
commit b13812d upstream. It was missed when I was forking Loongson2ef from Loongson64 but should be applied to Loongson2ef as march=loongson2f will also enable Loongson MMI in GCC-9+. Signed-off-by: Jiaxun Yang <[email protected]> Fixes: 71e2f4d ("MIPS: Fork loongson2ef from loongson64") Reported-by: Thomas Bogendoerfer <[email protected]> Cc: [email protected] # v5.8+ Signed-off-by: Thomas Bogendoerfer <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 464b2d4 commit 22dd238

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/mips/loongson2ef/Platform

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ ifdef CONFIG_CPU_LOONGSON2F_WORKAROUNDS
2222
endif
2323
endif
2424

25+
# Some -march= flags enable MMI instructions, and GCC complains about that
26+
# support being enabled alongside -msoft-float. Thus explicitly disable MMI.
27+
cflags-y += $(call cc-option,-mno-loongson-mmi)
28+
2529
#
2630
# Loongson Machines' Support
2731
#

0 commit comments

Comments
 (0)