Gentoo Archives: gentoo-catalyst

From: Matt Turner <mattst88@g.o>
To: gentoo-catalyst@l.g.o
Cc: Matt Turner <mattst88@g.o>, Fredrik Noring <fredrik.noring@×××××.com>
Subject: [gentoo-catalyst] [PATCH] arch/mips: Compile mipsel3 stages with -mfix-r5900
Date: Thu, 21 Apr 2022 06:40:16
Message-Id: 20220421063952.1020156-1-mattst88@gentoo.org
1 ... which will make them usable on the PlayStation 2. Don't bother
2 modifying the n64 ABI configuration, since it will never work on the
3 PS2.
4
5 Suggested-by: Fredrik Noring <fredrik.noring@×××××.com>
6 Signed-off-by: Matt Turner <mattst88@g.o>
7 ---
8 arch/mips.toml | 6 +++---
9 1 file changed, 3 insertions(+), 3 deletions(-)
10
11 diff --git a/arch/mips.toml b/arch/mips.toml
12 index a10ee799..22c9a22a 100644
13 --- a/arch/mips.toml
14 +++ b/arch/mips.toml
15 @@ -72,7 +72,7 @@ COMMON_FLAGS = "-O2 -march=mips32r2 -mabi=32 -mplt -pipe"
16
17 [mips.mipsel3]
18 CHOST = "mipsel-unknown-linux-gnu"
19 -COMMON_FLAGS = "-O2 -march=mips3 -mabi=32 -mplt -Wa,-mfix-loongson2f-nop -pipe"
20 +COMMON_FLAGS = "-O2 -march=mips3 -mabi=32 -mplt -Wa,-mfix-loongson2f-nop -mfix-r5900 -pipe"
21
22 [mips.mipsel4_r5k]
23 CHOST = "mipsel-unknown-linux-gnu"
24 @@ -172,7 +172,7 @@ COMMON_FLAGS = "-O2 -march=mips64r2 -mplt -pipe"
25
26 [mips64.mipsel3_n32]
27 CHOST = "mips64el-unknown-linux-gnu"
28 -COMMON_FLAGS = "-O2 -march=mips3 -mabi=n32 -mplt -Wa,-mfix-loongson2f-nop -pipe"
29 +COMMON_FLAGS = "-O2 -march=mips3 -mabi=n32 -mplt -Wa,-mfix-loongson2f-nop -mfix-r5900 -pipe"
30
31 [mips64.mipsel3_n64]
32 CHOST = "mips64el-unknown-linux-gnu"
33 @@ -180,7 +180,7 @@ COMMON_FLAGS = "-O2 -march=mips3 -mabi=64 -Wa,-mfix-loongson2f-nop -pipe"
34
35 [mips64.mipsel3_multilib]
36 CHOST = "mips64el-unknown-linux-gnu"
37 -COMMON_FLAGS = "-O2 -march=mips3 -mplt -Wa,-mfix-loongson2f-nop -pipe"
38 +COMMON_FLAGS = "-O2 -march=mips3 -mplt -Wa,-mfix-loongson2f-nop -mfix-r5900 -pipe"
39
40 [mips64.mipsel4_r5k_n32]
41 CHOST = "mips64el-unknown-linux-gnu"
42 --
43 2.35.1