Skip to content

Commit

Permalink
MIPS: Loongson2ef: Disable Loongson MMI instructions
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
FlyGoat authored and tsbogend committed Sep 23, 2020
1 parent 01ce6d4 commit b13812d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/mips/loongson2ef/Platform
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ ifdef CONFIG_CPU_LOONGSON2F_WORKAROUNDS
endif
endif

# Some -march= flags enable MMI instructions, and GCC complains about that
# support being enabled alongside -msoft-float. Thus explicitly disable MMI.
cflags-y += $(call cc-option,-mno-loongson-mmi)

#
# Loongson Machines' Support
#
Expand Down

0 comments on commit b13812d

Please sign in to comment.