Skip to contentSkip to conversation

MIPS: Fix fallback march for SB1

PATCH Applied Jiaxun Yang 2 participants 2 messages Jul 14, 2024 – Jul 15, 2024 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: Fix fallback march for SB1

Fallback march for SB1 should be mips64 instead of mips64r1.

Fixes bfc0a330c1b4 ("MIPS: Fallback CPU -march flag to ISA level if unsupported")
---
 arch/mips/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/Makefile +1 -1
index 80aecba24892..5785a3d5ccfb 100644
@@ -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)

---
base-commit: 3fe121b622825ff8cc995a1e6b026181c48188db
change-id: 20240714-fix-flags-9f8ee5d7c033

Best regards,

Signature · 1 line
Jiaxun Yang <[email protected]>
maintainer Applied
#1 lore raw
Quoted 25 lines · Jiaxun Yang

Fallback march for SB1 should be mips64 instead of mips64r1.

Fixes bfc0a330c1b4 ("MIPS: Fallback CPU -march flag to ISA level if unsupported")
---
 arch/mips/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/Makefile +1 -2
index 80aecba24892..5785a3d5ccfb 100644
@@ -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)
 
---
Quoted 2 lines

base-commit: 3fe121b622825ff8cc995a1e6b026181c48188db
change-id: 20240714-fix-flags-9f8ee5d7c033

applied to mips-next.

Thomas.

Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]