commit:     85c6f6a80296fb4c5866ff1a59668c935aeaf1c5
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 21 06:36:36 2022 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Thu Apr 21 16:43:53 2022 +0000
URL:        https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=85c6f6a8

arch/mips: Compile mipsel3 stages with -mfix-r5900

... which will make them usable on the PlayStation 2. Don't bother
modifying the n64 ABI configuration, since it will never work on the
PS2.

Suggested-by: Fredrik Noring <noring <AT> nocrew.org>
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 arch/mips.toml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/mips.toml b/arch/mips.toml
index a10ee799..22c9a22a 100644
--- a/arch/mips.toml
+++ b/arch/mips.toml
@@ -72,7 +72,7 @@ COMMON_FLAGS = "-O2 -march=mips32r2 -mabi=32 -mplt -pipe"
 
 [mips.mipsel3]
 CHOST = "mipsel-unknown-linux-gnu"
-COMMON_FLAGS = "-O2 -march=mips3 -mabi=32 -mplt -Wa,-mfix-loongson2f-nop -pipe"
+COMMON_FLAGS = "-O2 -march=mips3 -mabi=32 -mplt -Wa,-mfix-loongson2f-nop 
-mfix-r5900 -pipe"
 
 [mips.mipsel4_r5k]
 CHOST = "mipsel-unknown-linux-gnu"
@@ -172,7 +172,7 @@ COMMON_FLAGS = "-O2 -march=mips64r2 -mplt -pipe"
 
 [mips64.mipsel3_n32]
 CHOST = "mips64el-unknown-linux-gnu"
-COMMON_FLAGS = "-O2 -march=mips3 -mabi=n32 -mplt -Wa,-mfix-loongson2f-nop 
-pipe"
+COMMON_FLAGS = "-O2 -march=mips3 -mabi=n32 -mplt -Wa,-mfix-loongson2f-nop 
-mfix-r5900 -pipe"
 
 [mips64.mipsel3_n64]
 CHOST = "mips64el-unknown-linux-gnu"
@@ -180,7 +180,7 @@ COMMON_FLAGS = "-O2 -march=mips3 -mabi=64 
-Wa,-mfix-loongson2f-nop -pipe"
 
 [mips64.mipsel3_multilib]
 CHOST = "mips64el-unknown-linux-gnu"
-COMMON_FLAGS = "-O2 -march=mips3 -mplt -Wa,-mfix-loongson2f-nop -pipe"
+COMMON_FLAGS = "-O2 -march=mips3 -mplt -Wa,-mfix-loongson2f-nop -mfix-r5900 
-pipe"
 
 [mips64.mipsel4_r5k_n32]
 CHOST = "mips64el-unknown-linux-gnu"

Reply via email to