Skip to contentSkip to conversation

tcg/mips: Remove support for 32-bit hosts

PATCH Superseded Philippe Mathieu-Daudé 4 participants 14 messages Aug 20, 2025 – Oct 9, 2025

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover tcg/mips: Remove support for 32-bit hosts

32-bit hosts are deprecated since v10.0. 2 releases later (as of v10.2) we can remove such code. Start with MIPS TCG backend. Remove related buildsys and testing.

Based-on: <[email protected]>

Philippe Mathieu-Daudé (5):
docker: Remove 32-bit MIPS toolchain from debian-all-test image
gitlab: Stop cross-testing for 32-bit MIPS hosts
docker: Stop building 32-bit MIPS images
tcg/mips: Check O32/N32/64 ABI definitions actually exist tcg/mips: Remove support for 32-bit hosts

 configure                                     |   2 -
 tcg/mips/tcg-target-has.h                     |   2 -
 tcg/mips/tcg-target-reg-bits.h                |   5 +-
 tcg/mips/tcg-target.c.inc                     | 282 +++---------------
 .gitlab-ci.d/container-cross.yml              |   6 -
 .gitlab-ci.d/crossbuilds.yml                  |  14 -
 common-user/host/mips/safe-syscall.inc.S      |   4 +-
 tests/docker/Makefile.include                 |   2 +-
 .../dockerfiles/debian-all-test-cross.docker  |   4 -
 .../dockerfiles/debian-mipsel-cross.docker    | 180 -----------
 tests/lcitool/refresh                         |   5 -
 11 files changed, 42 insertions(+), 464 deletions(-)
 delete mode 100644 tests/docker/dockerfiles/debian-mipsel-cross.docker
Signature · 1 line
2.51.0
#1 lore raw

PATCH 1/5 docker: Remove 32-bit MIPS toolchain from debian-all-test image

In commit d3322023bfe ("configure: unify again the case arms in probe_target_compiler") we lost coverage of 32-bit MIPS with the debian-all-test image. No need to keep installing the toolchain.

---
 tests/docker/dockerfiles/debian-all-test-cross.docker | 4 ----
 1 file changed, 4 deletions(-)
tests/docker/dockerfiles/debian-all-test-cross.docker +0 -4
index 420a4e33e60..bc74d65a634 100644
@@ -40,14 +40,10 @@ ENV AVAILABLE_COMPILERS gcc-aarch64-linux-gnu \
         libc6-dev-arm64-cross \
         gcc-arm-linux-gnueabihf \
         libc6-dev-armhf-cross \
-        gcc-mips-linux-gnu \
-        libc6-dev-mips-cross \
         gcc-mips64-linux-gnuabi64 \
         libc6-dev-mips64-cross \
         gcc-mips64el-linux-gnuabi64 \
         libc6-dev-mips64el-cross \
-        gcc-mipsel-linux-gnu \
-        libc6-dev-mipsel-cross \
         gcc-powerpc64le-linux-gnu \
         libc6-dev-ppc64el-cross \
         gcc-riscv64-linux-gnu \
Signature · 1 line
2.51.0
#2 lore raw

Re: [PATCH 1/5] docker: Remove 32-bit MIPS toolchain from debian-all-test image

Quoted 18 lines · Philippe Mathieu-Daudé

In commit d3322023bfe ("configure: unify again the case arms in probe_target_compiler") we lost coverage of 32-bit MIPS with the debian-all-test image. No need to keep installing the toolchain.

---
 tests/docker/dockerfiles/debian-all-test-cross.docker | 4 ----
 1 file changed, 4 deletions(-)
tests/docker/dockerfiles/debian-all-test-cross.docker +0 -1
index 420a4e33e60..bc74d65a634 100644
@@ -40,14 +40,10 @@ ENV AVAILABLE_COMPILERS gcc-aarch64-linux-gnu \
         libc6-dev-arm64-cross \
         gcc-arm-linux-gnueabihf \
         libc6-dev-armhf-cross \
-        gcc-mips-linux-gnu \

tests/docker/dockerfiles/debian-all-test-cross.docker ENV AVAILABLE_COMPILERS gcc-aarch64-linux-gnu \ · line 49

Quoted 10 lines
tests/docker/dockerfiles/debian-all-test-cross.docker +0 -3
-        libc6-dev-mips-cross \
         gcc-mips64-linux-gnuabi64 \
         libc6-dev-mips64-cross \
         gcc-mips64el-linux-gnuabi64 \
         libc6-dev-mips64el-cross \
-        gcc-mipsel-linux-gnu \
-        libc6-dev-mipsel-cross \
         gcc-powerpc64le-linux-gnu \
         libc6-dev-ppc64el-cross \
         gcc-riscv64-linux-gnu \

You also need to remove the references in configure:

      hppa|m68k|mips|riscv64|sparc64)
        container_image=debian-all-test-cross
        ;;
      mips64)
        container_image=debian-all-test-cross
        container_cross_prefix=mips64-linux-gnuabi64-
        ;;
Signature · 2 lines
Alex Bennée
Virtualisation Tech Lead @ Linaro
#3 lore raw

Re: [PATCH 1/5] docker: Remove 32-bit MIPS toolchain from debian-all-test image

Quoted 33 lines · Alex Bennée
Quoted 18 lines · Philippe Mathieu-Daudé

In commit d3322023bfe ("configure: unify again the case arms in probe_target_compiler") we lost coverage of 32-bit MIPS with the debian-all-test image. No need to keep installing the toolchain.

---
  tests/docker/dockerfiles/debian-all-test-cross.docker | 4 ----
  1 file changed, 4 deletions(-)
tests/docker/dockerfiles/debian-all-test-cross.docker +0 -1
index 420a4e33e60..bc74d65a634 100644
@@ -40,14 +40,10 @@ ENV AVAILABLE_COMPILERS gcc-aarch64-linux-gnu \
          libc6-dev-arm64-cross \
          gcc-arm-linux-gnueabihf \
          libc6-dev-armhf-cross \
-        gcc-mips-linux-gnu \

tests/docker/dockerfiles/debian-all-test-cross.docker ENV AVAILABLE_COMPILERS gcc-aarch64-linux-gnu \ · line 49

Quoted 10 lines
tests/docker/dockerfiles/debian-all-test-cross.docker +0 -3
-        libc6-dev-mips-cross \
          gcc-mips64-linux-gnuabi64 \
          libc6-dev-mips64-cross \
          gcc-mips64el-linux-gnuabi64 \
          libc6-dev-mips64el-cross \
-        gcc-mipsel-linux-gnu \
-        libc6-dev-mipsel-cross \
          gcc-powerpc64le-linux-gnu \
          libc6-dev-ppc64el-cross \
          gcc-riscv64-linux-gnu \

You also need to remove the references in configure:

Quoted 3 lines
       hppa|m68k|mips|riscv64|sparc64)
         container_image=debian-all-test-cross
         ;;

OK.

Quoted 4 lines
       mips64)
         container_image=debian-all-test-cross
         container_cross_prefix=mips64-linux-gnuabi64-
         ;;

We aren't removing mips64 yet. We will but since the reason is different, it will be in another series.

#4 lore raw

Re: [PATCH 1/5] docker: Remove 32-bit MIPS toolchain from debian-all-test image

Quoted 26 lines · Philippe Mathieu-Daudé
Quoted 25 lines · Alex Bennée
Quoted 23 lines · Philippe Mathieu-Daudé

In commit d3322023bfe ("configure: unify again the case arms in probe_target_compiler") we lost coverage of 32-bit MIPS with the debian-all-test image. No need to keep installing the toolchain.

---
  tests/docker/dockerfiles/debian-all-test-cross.docker | 4 ----

  1 file changed, 4 deletions(-)
tests/docker/dockerfiles/debian-all-test-cross.docker +0 -2
index 420a4e33e60..bc74d65a634 100644
@@ -40,14 +40,10 @@ ENV AVAILABLE_COMPILERS gcc-aarch64-linux-gnu \
           libc6-dev-arm64-cross \
           gcc-arm-linux-gnueabihf \
           libc6-dev-armhf-cross \
-        gcc-mips-linux-gnu \
-        libc6-dev-mips-cross \
           gcc-mips64-linux-gnuabi64 \
           libc6-dev-mips64-cross \
           gcc-mips64el-linux-gnuabi64 \
           libc6-dev-mips64el-cross \
Quoted 8 lines
Quoted 8 lines

tests/docker/dockerfiles/debian-all-test-cross.docker ENV AVAILABLE_COMPILERS gcc-aarch64-linux-gnu \ · line 49

Quoted 5 lines
tests/docker/dockerfiles/debian-all-test-cross.docker +0 -2
-        gcc-mipsel-linux-gnu \
-        libc6-dev-mipsel-cross \
           gcc-powerpc64le-linux-gnu \
           libc6-dev-ppc64el-cross \
           gcc-riscv64-linux-gnu \

You also need to remove the references in configure:

Expanding:

case $target_arch in

Quoted 5 lines
Quoted 3 lines

       hppa|m68k|mips|riscv64|sparc64)
         container_image=debian-all-test-cross
         ;;

OK.

So actual patch is correct here.

Quoted 8 lines
Quoted 5 lines

       mips64) container_image=debian-all-test-cross container_cross_prefix=mips64-linux-gnuabi64- ;;

We aren't removing mips64 yet. We will but since the reason is different, it will be in another series.

#5 lore raw

PATCH 2/5 gitlab: Stop cross-testing for 32-bit MIPS hosts

In reply to Philippe Mathieu-Daudé

32-bit host support is deprecated since commit 6d701c9bac1 ("meson: Deprecate 32-bit host support"). Next commits will remove support for 32-bit MIPS hosts. Stop cross-building QEMU on our CI.

---
 .gitlab-ci.d/container-cross.yml |  6 ------
 .gitlab-ci.d/crossbuilds.yml     | 14 --------------
 2 files changed, 20 deletions(-)
.gitlab-ci.d/container-cross.yml +0 -6
index 8d3be53b75b..0fd7341afac 100644
@@ -52,12 +52,6 @@ mips64el-debian-cross-container:
   variables:
     NAME: debian-mips64el-cross
 
-mipsel-debian-cross-container:
-  extends: .container_job_template
-  stage: containers
-  variables:
-    NAME: debian-mipsel-cross
-
 ppc64el-debian-cross-container:
   extends: .container_job_template
   stage: containers
.gitlab-ci.d/crossbuilds.yml +0 -14
index 3f76c901ba8..721aea77a27 100644
@@ -68,20 +68,6 @@ cross-i686-tci:
     # would otherwise be using a parallelism of 9.
     MAKE_CHECK_ARGS: check check-tcg -j2
 
-cross-mipsel-system:
-  extends: .cross_system_build_job
-  needs:
-    job: mipsel-debian-cross-container
-  variables:
-    IMAGE: debian-mipsel-cross
-
-cross-mipsel-user:
-  extends: .cross_user_build_job
-  needs:
-    job: mipsel-debian-cross-container
-  variables:
-    IMAGE: debian-mipsel-cross
-
 cross-mips64el-system:
   extends: .cross_system_build_job
   needs:
Signature · 1 line
2.51.0
Reviewed-by on v1 2/5
#6 lore raw

Re: [PATCH 2/5] gitlab: Stop cross-testing for 32-bit MIPS hosts

Quoted 10 lines · Philippe Mathieu-Daudé

32-bit host support is deprecated since commit 6d701c9bac1 ("meson: Deprecate 32-bit host support"). Next commits will remove support for 32-bit MIPS hosts. Stop cross-building QEMU on our CI.

---
  .gitlab-ci.d/container-cross.yml |  6 ------
  .gitlab-ci.d/crossbuilds.yml     | 14 --------------
  2 files changed, 20 deletions(-)
#7 lore raw

PATCH 3/5 docker: Stop building 32-bit MIPS images

In reply to Philippe Mathieu-Daudé

32-bit host support is deprecated since commit 6d701c9bac1 ("meson: Deprecate 32-bit host support"). Besides, the Debian distribution we are using to cross-build dropped support for MIPS as of Debian 13 [*]:

From trixie, the architectures mipsel and mips64el are no longer supported by Debian. Users of these architectures are advised to switch to different hardware.

Next commits will remove support for 32-bit MIPS hosts. Stop building the mipsel Docker image.

[*] https://www.debian.org/releases/trixie/release-notes/issues.en.html#mips-architectures-removed

---
 configure                                     |   2 -
 tests/docker/Makefile.include                 |   2 +-
 .../dockerfiles/debian-mipsel-cross.docker    | 180 ------------------
 tests/lcitool/refresh                         |   5 -
 4 files changed, 1 insertion(+), 188 deletions(-)
 delete mode 100644 tests/docker/dockerfiles/debian-mipsel-cross.docker
configure +0 -2
index 274a7787642..2d85a6a156c 100755
@@ -1347,8 +1347,6 @@ fi
 : ${cross_prefix_microblaze="microblaze-linux-musl-"}
 : ${cross_prefix_mips64el="mips64el-linux-gnuabi64-"}
 : ${cross_prefix_mips64="mips64-linux-gnuabi64-"}
-: ${cross_prefix_mipsel="mipsel-linux-gnu-"}
-: ${cross_prefix_mips="mips-linux-gnu-"}
 : ${cross_prefix_ppc="powerpc-linux-gnu-"}
 : ${cross_prefix_ppc64="powerpc64-linux-gnu-"}
 : ${cross_prefix_ppc64le="$cross_prefix_ppc64"}
tests/docker/Makefile.include +1 -1
index 3959d8a028a..ac8ca1fe3a0 100644
@@ -82,7 +82,7 @@ endif
 
 # For non-x86 hosts not all cross-compilers have been packaged
 ifneq ($(HOST_ARCH),x86_64)
-DOCKER_PARTIAL_IMAGES += debian-mipsel-cross debian-mips64el-cross
+DOCKER_PARTIAL_IMAGES += debian-mips64el-cross
 DOCKER_PARTIAL_IMAGES += debian-ppc64el-cross
 DOCKER_PARTIAL_IMAGES += debian-s390x-cross
 DOCKER_PARTIAL_IMAGES += fedora
tests/docker/dockerfiles/debian-mipsel-cross.docker deleted +0 -180

180 lines not on this page · raw message

tests/lcitool/refresh +0 -5
index d3488b2679e..6a70e1dc497 100755
@@ -214,11 +214,6 @@ try:
                         trailer=cross_build("mips64el-linux-gnuabi64-",
                                             "mips64el-softmmu,mips64el-linux-user"))
 
-    generate_dockerfile("debian-mipsel-cross", "debian-12",
-                        cross="mipsel",
-                        trailer=cross_build("mipsel-linux-gnu-",
-                                            "mipsel-softmmu,mipsel-linux-user"))
-
     generate_dockerfile("debian-ppc64el-cross", "debian-12",
                         cross="ppc64le",
                         trailer=cross_build("powerpc64le-linux-gnu-",
Signature · 1 line
2.51.0
Reviewed-by on v1 3/5
#8 lore raw

Re: [PATCH 3/5] docker: Stop building 32-bit MIPS images

Quoted 9 lines · Philippe Mathieu-Daudé

32-bit host support is deprecated since commit 6d701c9bac1 ("meson: Deprecate 32-bit host support"). Besides, the Debian distribution we are using to cross-build dropped support for MIPS as of Debian 13 [*]:

From trixie, the architectures mipsel and mips64el are no longer supported by Debian. Users of these architectures are advised to switch to different hardware.

Quoted 7 lines

Next commits will remove support for 32-bit MIPS hosts. Stop building the mipsel Docker image.

[*] https://www.debian.org/releases/trixie/release-notes/issues.en.html#mips-architectures-removed

---

#9 lore raw

PATCH 4/5 tcg/mips: Check O32/N32/64 ABI definitions actually exist

In reply to Philippe Mathieu-Daudé

Similarly noted in libunwind: https://reviews.llvm.org/D38110#895887,
when _ABIO32 / _ABIN32 / _ABI64 are not defined (like on OpenBSD) we get:

[666/1234] Compiling C object libsystem.a.p/tcg_tcg-common.c.o
In file included from ../tcg/tcg-common.c:26:
In file included from include/tcg/tcg.h:34:
tcg/mips/tcg-target-reg-bits.h:10:18: warning: '_ABIO32' is not defined, evaluates to 0 [-Wundef]

  #if _MIPS_SIM == _ABIO32
                   ^
  tcg/mips/tcg-target-reg-bits.h:12:20: warning: '_ABIN32' is not defined, evaluates to 0 [-Wundef]
  #elif _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
                     ^

2 warnings generated.

---
 tcg/mips/tcg-target-reg-bits.h           | 5 +++--
 tcg/mips/tcg-target.c.inc                | 5 +++--
 common-user/host/mips/safe-syscall.inc.S | 4 ++--
 3 files changed, 8 insertions(+), 6 deletions(-)
tcg/mips/tcg-target-reg-bits.h +3 -2
index 56fe0a725e9..a957d2312f3 100644
@@ -7,9 +7,10 @@
 #ifndef TCG_TARGET_REG_BITS_H
 #define TCG_TARGET_REG_BITS_H
 
-#if _MIPS_SIM == _ABIO32
+#if defined(_ABIO32) && _MIPS_SIM == _ABIO32
 # define TCG_TARGET_REG_BITS 32
-#elif _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
+#elif (defined(_ABIN32) && _MIPS_SIM == _ABIN32) \
+       || (defined(_ABI64) && _MIPS_SIM == _ABI64)
 # define TCG_TARGET_REG_BITS 64
 #else
 # error "Unknown ABI"
tcg/mips/tcg-target.c.inc +3 -2
index 400eafbab4b..5cdaaaa9286 100644
@@ -26,7 +26,7 @@
 
 /* used for function call generation */
 #define TCG_TARGET_STACK_ALIGN        16
-#if _MIPS_SIM == _ABIO32
+#if defined(_ABIO32) && _MIPS_SIM == _ABIO32
 # define TCG_TARGET_CALL_STACK_OFFSET 16
 # define TCG_TARGET_CALL_ARG_I64      TCG_CALL_ARG_EVEN
 # define TCG_TARGET_CALL_RET_I128     TCG_CALL_RET_BY_REF
@@ -135,7 +135,8 @@ static const TCGReg tcg_target_call_iarg_regs[] = {
     TCG_REG_A1,
     TCG_REG_A2,
     TCG_REG_A3,
-#if _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
+#if (defined(_ABIN32) && _MIPS_SIM == _ABIN32) \
+     || (defined(_ABI64) && _MIPS_SIM == _ABI64)
     TCG_REG_T0,
     TCG_REG_T1,
     TCG_REG_T2,
common-user/host/mips/safe-syscall.inc.S +2 -2
index 6a446149704..8857d708dae 100644
@@ -30,7 +30,7 @@
          * arguments being syscall arguments (also 'long').
          */
 
-#if _MIPS_SIM == _ABIO32
+#if defined(_ABIO32) && _MIPS_SIM == _ABIO32
 /* 8 * 4 = 32 for outgoing parameters; 1 * 4 for s0 save; 1 * 4 for align. */
 #define FRAME    40
 #define OFS_S0   32
@@ -47,7 +47,7 @@ NESTED(safe_syscall_base, FRAME, ra)
         .cfi_adjust_cfa_offset FRAME
         REG_S   s0, OFS_S0(sp)
         .cfi_rel_offset s0, OFS_S0
-#if _MIPS_SIM == _ABIO32
+#if defined(_ABIO32) && _MIPS_SIM == _ABIO32
         /*
          * The syscall calling convention is nearly the same as C:
          * we enter with a0 == &signal_pending
Signature · 1 line
2.51.0
#10 lore raw

Re: [PATCH 4/5] tcg/mips: Check O32/N32/64 ABI definitions actually exist

Quoted 32 lines · Philippe Mathieu-Daudé

Similarly noted in libunwind: https://reviews.llvm.org/D38110#895887,
when _ABIO32 / _ABIN32 / _ABI64 are not defined (like on OpenBSD) we get:

[666/1234] Compiling C object libsystem.a.p/tcg_tcg-common.c.o In file included from ../tcg/tcg-common.c:26:
In file included from include/tcg/tcg.h:34:

   tcg/mips/tcg-target-reg-bits.h:10:18: warning: '_ABIO32' is not defined, evaluates to 0 [-Wundef]
   #if _MIPS_SIM == _ABIO32
                    ^
   tcg/mips/tcg-target-reg-bits.h:12:20: warning: '_ABIN32' is not defined, evaluates to 0 [-Wundef]
   #elif _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
                      ^
   2 warnings generated.
---
  tcg/mips/tcg-target-reg-bits.h           | 5 +++--
  tcg/mips/tcg-target.c.inc                | 5 +++--
  common-user/host/mips/safe-syscall.inc.S | 4 ++--
  3 files changed, 8 insertions(+), 6 deletions(-)
tcg/mips/tcg-target-reg-bits.h +0 -0
index 56fe0a725e9..a957d2312f3 100644
@@ -7,9 +7,10 @@
  #ifndef TCG_TARGET_REG_BITS_H
  #define TCG_TARGET_REG_BITS_H

tcg/mips/tcg-target-reg-bits.h line 16

Quoted 10 lines
tcg/mips/tcg-target-reg-bits.h +3 -2
 
-#if _MIPS_SIM == _ABIO32
+#if defined(_ABIO32) && _MIPS_SIM == _ABIO32
  # define TCG_TARGET_REG_BITS 32
-#elif _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
+#elif (defined(_ABIN32) && _MIPS_SIM == _ABIN32) \
+       || (defined(_ABI64) && _MIPS_SIM == _ABI64)
  # define TCG_TARGET_REG_BITS 64
  #else
  # error "Unknown ABI"

Alternately, remove all of this. If we're removing 32-bit hosts, _ABI64 is the only valid answer (N32 has 64-bit registers but 32-bit pointers).

r~

#11 lore raw

Re: [PATCH 4/5] tcg/mips: Check O32/N32/64 ABI definitions actually exist

Quoted 37 lines · Richard Henderson
Quoted 36 lines · Philippe Mathieu-Daudé

Similarly noted in libunwind: https://reviews.llvm.org/D38110#895887,
when _ABIO32 / _ABIN32 / _ABI64 are not defined (like on OpenBSD) we get:

   [666/1234] Compiling C object libsystem.a.p/tcg_tcg-common.c.o
   In file included from ../tcg/tcg-common.c:26:
   In file included from include/tcg/tcg.h:34:
   tcg/mips/tcg-target-reg-bits.h:10:18: warning: '_ABIO32' is not defined, evaluates to 0 [-Wundef] #if _MIPS_SIM == _ABIO32
                    ^
   tcg/mips/tcg-target-reg-bits.h:12:20: warning: '_ABIN32' is not defined, evaluates to 0 [-Wundef] #elif _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
                      ^
   2 warnings generated.

---
  tcg/mips/tcg-target-reg-bits.h           | 5 +++-- tcg/mips/tcg-target.c.inc                | 5 +++-- common-user/host/mips/safe-syscall.inc.S | 4 ++--

  3 files changed, 8 insertions(+), 6 deletions(-)
tcg/mips/tcg-target-reg-bits.h +1 -2
index 56fe0a725e9..a957d2312f3 100644
@@ -7,9 +7,10 @@
   #ifndef TCG_TARGET_REG_BITS_H
   #define TCG_TARGET_REG_BITS_H
-#if _MIPS_SIM == _ABIO32
+#if defined(_ABIO32) && _MIPS_SIM == _ABIO32
   # define TCG_TARGET_REG_BITS 32
-#elif _MIPS_SIM == _ABIN32 || _MIPS_SIM == _ABI64
Quoted 8 lines

tcg/mips/tcg-target-reg-bits.h line 16

Quoted 5 lines
tcg/mips/tcg-target-reg-bits.h +2 -0
+#elif (defined(_ABIN32) && _MIPS_SIM == _ABIN32) \
+       || (defined(_ABI64) && _MIPS_SIM == _ABI64)
   # define TCG_TARGET_REG_BITS 64
   #else
   # error "Unknown ABI"

Alternately, remove all of this.  If we're removing 32-bit hosts, _ABI64 is the only valid answer (N32 has 64-bit registers but 32-bit pointers).

OK, but meanwhile can you consider this patch out of 32-bit host removal? (I should have posted it separately for OpenBSD).

#12 lore raw

PATCH 5/5 tcg/mips: Remove support for 32-bit hosts

In reply to Philippe Mathieu-Daudé

32-bit host support is deprecated since commit 6d701c9bac1 ("meson: Deprecate 32-bit host support"), released as v10.0. The next release being v10.2, we can remove the TCG backend for 32-bit MIPS hosts.

---
 tcg/mips/tcg-target-has.h      |   2 -
 tcg/mips/tcg-target-reg-bits.h |   4 +-
 tcg/mips/tcg-target.c.inc      | 277 ++++-----------------------------
 3 files changed, 35 insertions(+), 248 deletions(-)
tcg/mips/tcg-target-has.h +0 -2
index b9eb3385288..88f0145efba 100644
@@ -39,11 +39,9 @@ extern bool use_mips32r2_instructions;
 #endif
 
 /* optional instructions */
-#if TCG_TARGET_REG_BITS == 64
 #define TCG_TARGET_HAS_extr_i64_i32     1
 #define TCG_TARGET_HAS_ext32s_i64       1
 #define TCG_TARGET_HAS_ext32u_i64       1
-#endif
 
 /* optional instructions detected at runtime */
 #define TCG_TARGET_HAS_qemu_ldst_i128   0
tcg/mips/tcg-target-reg-bits.h +1 -3
index a957d2312f3..e608250c72f 100644
@@ -7,9 +7,7 @@
 #ifndef TCG_TARGET_REG_BITS_H
 #define TCG_TARGET_REG_BITS_H
 
-#if defined(_ABIO32) && _MIPS_SIM == _ABIO32
-# define TCG_TARGET_REG_BITS 32
-#elif (defined(_ABIN32) && _MIPS_SIM == _ABIN32) \
+#if (defined(_ABIN32) && _MIPS_SIM == _ABIN32) \
        || (defined(_ABI64) && _MIPS_SIM == _ABI64)
 # define TCG_TARGET_REG_BITS 64
 #else
tcg/mips/tcg-target.c.inc +34 -243

507 lines not on this page · raw message

Signature · 1 line
2.51.0
Reviewed-by on the v1 series
#13 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 6 lines · Philippe Mathieu-Daudé

Philippe Mathieu-Daudé (5):
docker: Remove 32-bit MIPS toolchain from debian-all-test image
gitlab: Stop cross-testing for 32-bit MIPS hosts
docker: Stop building 32-bit MIPS images
tcg/mips: Check O32/N32/64 ABI definitions actually exist tcg/mips: Remove support for 32-bit hosts

Modulo the ld2/st2 thing,

r~