1#
2# Loongson Processors' Support
3#
4
5
6cflags-$(CONFIG_CPU_LOONGSON64)	+= -Wa,--trap
7
8ifdef CONFIG_CPU_LOONGSON64
9cflags-$(CONFIG_CC_IS_GCC) += -march=loongson3a
10cflags-$(CONFIG_CC_IS_CLANG) += -march=mips64r2
11endif
12
13# Some -march= flags enable MMI instructions, and GCC complains about that
14# support being enabled alongside -msoft-float. Thus explicitly disable MMI.
15cflags-y += $(call cc-option,-mno-loongson-mmi)
16
17#
18# Loongson Machines' Support
19#
20
21cflags-$(CONFIG_MACH_LOONGSON64) += -I$(srctree)/arch/mips/include/asm/mach-loongson64
22cflags-$(CONFIG_CC_HAS_MNO_BRANCH_LIKELY) += -mno-branch-likely
23load-$(CONFIG_CPU_LOONGSON64) += 0xffffffff80200000
24