diff mbox series

[RFC,35/42] tests/tcg: Add MIPS R5900 to arches filter

Message ID 20210214175912.732946-36-f4bug@amsat.org (mailing list archive)
State New, archived
Headers show
Series target/mips: Reintroduce the R5900 CPU (with more testing) | expand

Commit Message

Philippe Mathieu-Daudé Feb. 14, 2021, 5:59 p.m. UTC
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 tests/tcg/configure.sh | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tests/tcg/configure.sh b/tests/tcg/configure.sh
index e1b70e25f23..64796ee11fc 100755
--- a/tests/tcg/configure.sh
+++ b/tests/tcg/configure.sh
@@ -57,6 +57,8 @@  fi
 : $(cross_cc_mips64="mips64-linux-gnuabi64-gcc")
 : $(cross_cc_mipsel="mipsel-linux-gnu-gcc")
 : $(cross_cc_mips="mips-linux-gnu-gcc")
+: $(cross_cc_r5900o32el="mipsr5900el-unknown-linux-gnu-gcc")
+: ${cross_cc_cflags_r5900o32el="-mabi=32 -march=r5900"}
 : ${cross_cc_ppc="powerpc-linux-gnu-gcc"}
 : ${cross_cc_cflags_ppc="-m32"}
 : ${cross_cc_ppc64="powerpc64-linux-gnu-gcc"}
@@ -79,7 +81,7 @@  for target in $target_list; do
     aarch64|aarch64_be)
       arches="aarch64 arm"
       ;;
-    mips*)
+    mips*|r5900o32el*)
       arches=mips
       ;;
     ppc*)
@@ -150,6 +152,10 @@  for target in $target_list; do
       container_image=debian-mips-cross
       container_cross_cc=mips-linux-gnu-gcc
       ;;
+    r5900o32el-*)
+      container_image=gentoo-mipsr5900el-cross
+      container_cross_cc=mipsr5900el-unknown-linux-gnu-gcc
+      ;;
     ppc-*|ppc64abi32-*)
       container_image=debian-powerpc-cross
       container_cross_cc=powerpc-linux-gnu-gcc