@@ -148,10 +148,10 @@ cflags-y += $(call cc-option,-Wa$(comma)-mno-fix-loongson3-llsc,)
148
148
#
149
149
# CPU-dependent compiler/assembler options for optimization.
150
150
#
151
- cflags-$(CONFIG_CPU_R3000) += - march=r3000
152
- cflags-$(CONFIG_CPU_R4300) += - march=r4300 -Wa,--trap
153
- cflags-$(CONFIG_CPU_R4X00) += - march=r4600 -Wa,--trap
154
- cflags-$(CONFIG_CPU_TX49XX) += - march=r4600 -Wa,--trap
151
+ cflags-$(CONFIG_CPU_R3000) += $( call cc-option,- march=r3000,-march=mips1)
152
+ cflags-$(CONFIG_CPU_R4300) += $( call cc-option,- march=r4300,-march=mips3) -Wa,--trap
153
+ cflags-$(CONFIG_CPU_R4X00) += $( call cc-option,- march=r4600,-march=mips3) -Wa,--trap
154
+ cflags-$(CONFIG_CPU_TX49XX) += $( call cc-option,- march=r4600,-march=mips3) -Wa,--trap
155
155
cflags-$(CONFIG_CPU_MIPS32_R1) += -march=mips32 -Wa,--trap
156
156
cflags-$(CONFIG_CPU_MIPS32_R2) += -march=mips32r2 -Wa,--trap
157
157
cflags-$(CONFIG_CPU_MIPS32_R5) += -march=mips32r5 -Wa,--trap -modd-spreg
@@ -160,26 +160,30 @@ cflags-$(CONFIG_CPU_MIPS64_R1) += -march=mips64 -Wa,--trap
160
160
cflags-$(CONFIG_CPU_MIPS64_R2) += -march=mips64r2 -Wa,--trap
161
161
cflags-$(CONFIG_CPU_MIPS64_R5) += -march=mips64r5 -Wa,--trap
162
162
cflags-$(CONFIG_CPU_MIPS64_R6) += -march=mips64r6 -Wa,--trap
163
- cflags-$(CONFIG_CPU_P5600) += - march=p5600 -Wa,--trap -modd-spreg
164
- cflags-$(CONFIG_CPU_R5000) += -march=r5000 - Wa,--trap
165
- cflags-$(CONFIG_CPU_R5500 ) += $(call cc-option,-march=r5500 ,-march=r5000 ) \
163
+ cflags-$(CONFIG_CPU_P5600) += $( call cc-option,- march=p5600,-march=mips32r5) \
164
+ - Wa,--trap -modd-spreg
165
+ cflags-$(CONFIG_CPU_R5000 ) += $(call cc-option,-march=r5000 ,-march=mips4 ) \
166
166
-Wa,--trap
167
- cflags-$(CONFIG_CPU_NEVADA ) += $(call cc-option,-march=rm5200 ,-march=r5000 ) \
167
+ cflags-$(CONFIG_CPU_R5500 ) += $(call cc-option,-march=r5500 ,-march=mips4 ) \
168
168
-Wa,--trap
169
- cflags-$(CONFIG_CPU_RM7000 ) += $(call cc-option,-march=rm7000 ,-march=r5000 ) \
169
+ cflags-$(CONFIG_CPU_NEVADA ) += $(call cc-option,-march=rm5200 ,-march=mips4 ) \
170
170
-Wa,--trap
171
- cflags-$(CONFIG_CPU_SB1) += $(call cc-option,-march=sb1,-march=r5000) \
171
+ cflags-$(CONFIG_CPU_RM7000) += $(call cc-option,-march=rm7000,-march=mips4) \
172
+ -Wa,--trap
173
+ cflags-$(CONFIG_CPU_SB1) += $(call cc-option,-march=sb1,-march=mips64) \
172
174
-Wa,--trap
173
175
cflags-$(CONFIG_CPU_SB1) += $(call cc-option,-mno-mdmx)
174
176
cflags-$(CONFIG_CPU_SB1) += $(call cc-option,-mno-mips3d)
175
- cflags-$(CONFIG_CPU_R10000) += $(call cc-option,-march=r10000,-march=r8000 ) \
177
+ cflags-$(CONFIG_CPU_R10000) += $(call cc-option,-march=r10000,-march=mips4 ) \
176
178
-Wa,--trap
177
179
cflags-$(CONFIG_CPU_CAVIUM_OCTEON) += -march=octeon -Wa,--trap
178
180
cflags-$(CONFIG_CAVIUM_CN63XXP1) += -Wa,-mfix-cn63xxp1
179
181
cflags-$(CONFIG_CPU_BMIPS) += -march=mips32 -Wa,-mips32 -Wa,--trap
180
182
181
- cflags-$(CONFIG_CPU_LOONGSON2E) += -march=loongson2e -Wa,--trap
182
- cflags-$(CONFIG_CPU_LOONGSON2F) += -march=loongson2f -Wa,--trap
183
+ cflags-$(CONFIG_CPU_LOONGSON2E) += \
184
+ $(call cc-option,-march=loongson2e,-march=mips3) -Wa,--trap
185
+ cflags-$(CONFIG_CPU_LOONGSON2F) += \
186
+ $(call cc-option,-march=loongson2f,-march=mips3) -Wa,--trap
183
187
# Some -march= flags enable MMI instructions, and GCC complains about that
184
188
# support being enabled alongside -msoft-float. Thus explicitly disable MMI.
185
189
cflags-$(CONFIG_CPU_LOONGSON2EF) += $(call cc-option,-mno-loongson-mmi)
0 commit comments