Skip to contentSkip to conversation

tcg/mips: Remove support for 32-bit hosts

PATCH In review Philippe Mathieu-Daudé 3 participants 14 messages Oct 9, 2025 – Oct 10, 2025 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

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

Since v1:
- Removed N32/O32 ABIs (rth)
- Do not remove tgen_qemu_ld2/st2

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.

Philippe Mathieu-Daudé (7):
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: Remove support for O32 and N32 ABIs tcg/mips: Remove support for 32-bit hosts
kvm/mips: Remove support for 32-bit hosts
buildsys: Remove support for 32-bit MIPS hosts

 docs/about/deprecated.rst                     |  13 +-
 docs/about/removed-features.rst               |   6 +
 configure                                     |   9 -
 meson.build                                   |   2 -
 tcg/mips/tcg-target-has.h                     |   2 -
 tcg/mips/tcg-target-reg-bits.h                |   9 +-
 tcg/mips/tcg-target.c.inc                     | 292 +++---------------
 .gitlab-ci.d/container-cross.yml              |   6 -
 .gitlab-ci.d/crossbuilds.yml                  |  14 -
 common-user/host/mips/safe-syscall.inc.S      |  35 ---
 tests/docker/Makefile.include                 |   2 +-
 .../dockerfiles/debian-all-test-cross.docker  |   4 -
 .../dockerfiles/debian-mipsel-cross.docker    | 187 -----------
 tests/lcitool/refresh                         |   5 -
 14 files changed, 56 insertions(+), 530 deletions(-)
 delete mode 100644 tests/docker/dockerfiles/debian-mipsel-cross.docker
Signature · 1 line
2.51.0
#1 lore raw

PATCH v2 1/7 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

PATCH v2 2/7 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 8ff0c27f74d..99dfa7eea6f 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
#3 lore raw

PATCH v2 3/7 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    | 187 ------------------
 tests/lcitool/refresh                         |   5 -
 4 files changed, 1 insertion(+), 195 deletions(-)
 delete mode 100644 tests/docker/dockerfiles/debian-mipsel-cross.docker
configure +0 -2
index 461b53dd605..6a633ac2b16 100755
@@ -1360,8 +1360,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 -187

187 lines not on this page · raw message

tests/lcitool/refresh +0 -5
index 056cfb6e9d7..39bfc7e1113 100755
@@ -225,11 +225,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-13",
                         cross="ppc64le",
                         trailer=cross_build("powerpc64le-linux-gnu-",
Signature · 1 line
2.51.0
#4 lore raw

PATCH v2 4/7 tcg/mips: Remove support for O32 and N32 ABIs

In reply to Philippe Mathieu-Daudé

See previous commit for rationale.

---
 tcg/mips/tcg-target-reg-bits.h           |  9 ++----
 tcg/mips/tcg-target.c.inc                | 15 ++--------
 common-user/host/mips/safe-syscall.inc.S | 35 ------------------------
 3 files changed, 6 insertions(+), 53 deletions(-)
tcg/mips/tcg-target-reg-bits.h +3 -6
index a957d2312f3..ee346a3f256 100644
@@ -7,13 +7,10 @@
 #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) \
-       || (defined(_ABI64) && _MIPS_SIM == _ABI64)
-# define TCG_TARGET_REG_BITS 64
-#else
+#if !defined(_MIPS_SIM) || _MIPS_SIM != _ABI64
 # error "Unknown ABI"
 #endif
 
+#define TCG_TARGET_REG_BITS 64
+
 #endif
tcg/mips/tcg-target.c.inc +3 -12
index 045565f4ca8..77af0d8658a 100644
@@ -26,15 +26,9 @@
 
 /* used for function call generation */
 #define TCG_TARGET_STACK_ALIGN        16
-#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
-#else
-# define TCG_TARGET_CALL_STACK_OFFSET 0
-# define TCG_TARGET_CALL_ARG_I64      TCG_CALL_ARG_NORMAL
-# define TCG_TARGET_CALL_RET_I128     TCG_CALL_RET_NORMAL
-#endif
+#define TCG_TARGET_CALL_STACK_OFFSET  0
+#define TCG_TARGET_CALL_ARG_I64       TCG_CALL_ARG_NORMAL
+#define TCG_TARGET_CALL_RET_I128      TCG_CALL_RET_NORMAL
 #define TCG_TARGET_CALL_ARG_I32       TCG_CALL_ARG_NORMAL
 #define TCG_TARGET_CALL_ARG_I128      TCG_CALL_ARG_EVEN
 
@@ -135,13 +129,10 @@ static const TCGReg tcg_target_call_iarg_regs[] = {
     TCG_REG_A1,
     TCG_REG_A2,
     TCG_REG_A3,
-#if (defined(_ABIN32) && _MIPS_SIM == _ABIN32) \
-     || (defined(_ABI64) && _MIPS_SIM == _ABI64)
     TCG_REG_T0,
     TCG_REG_T1,
     TCG_REG_T2,
     TCG_REG_T3,
-#endif
 };
 
 static TCGReg tcg_target_call_oarg_reg(TCGCallReturnKind kind, int slot)
common-user/host/mips/safe-syscall.inc.S +0 -35
index 8857d708dae..3b196cc634c 100644
@@ -30,15 +30,9 @@
          * arguments being syscall arguments (also 'long').
          */
 
-#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
-#else
 /* 1 * 8 for s0 save; 1 * 8 for align. */
 #define FRAME    16
 #define OFS_S0   0
-#endif
 
 
 NESTED(safe_syscall_base, FRAME, ra)
@@ -47,34 +41,6 @@ NESTED(safe_syscall_base, FRAME, ra)
         .cfi_adjust_cfa_offset FRAME
         REG_S   s0, OFS_S0(sp)
         .cfi_rel_offset s0, OFS_S0
-#if defined(_ABIO32) && _MIPS_SIM == _ABIO32
-        /*
-         * The syscall calling convention is nearly the same as C:
-         * we enter with a0 == &signal_pending
-         *               a1 == syscall number
-         *               a2, a3, stack == syscall arguments
-         *               and return the result in a0
-         * and the syscall instruction needs
-         *               v0 == syscall number
-         *               a0 ... a3, stack == syscall arguments
-         *               and returns the result in v0
-         * Shuffle everything around appropriately.
-         */
-        move    s0, a0          /* signal_pending pointer */
-        move    v0, a1          /* syscall number */
-        move    a0, a2          /* syscall arguments */
-        move    a1, a3
-        lw      a2, FRAME+16(sp)
-        lw      a3, FRAME+20(sp)
-        lw      t4, FRAME+24(sp)
-        lw      t5, FRAME+28(sp)
-        lw      t6, FRAME+32(sp)
-        lw      t7, FRAME+40(sp)
-        sw      t4, 16(sp)
-        sw      t5, 20(sp)
-        sw      t6, 24(sp)
-        sw      t7, 28(sp)
-#else
         /*
          * The syscall calling convention is nearly the same as C:
          * we enter with a0 == &signal_pending
@@ -95,7 +61,6 @@ NESTED(safe_syscall_base, FRAME, ra)
         move    a3, a5
         move    a4, a6
         move    a5, a7
-#endif
 
         /*
          * This next sequence of code works in conjunction with the
Signature · 1 line
2.51.0
Reviewed-by on v2 4/7
#5 lore raw

Re: [PATCH v2 4/7] tcg/mips: Remove support for O32 and N32 ABIs

Quoted 8 lines · Philippe Mathieu-Daudé

See previous commit for rationale.

---
  tcg/mips/tcg-target-reg-bits.h           |  9 ++----
  tcg/mips/tcg-target.c.inc                | 15 ++--------
  common-user/host/mips/safe-syscall.inc.S | 35 ------------------------
  3 files changed, 6 insertions(+), 53 deletions(-)
#6 lore raw

PATCH v2 5/7 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.c.inc | 277 ++++++--------------------------------
 2 files changed, 38 insertions(+), 241 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.c.inc +38 -239

521 lines not on this page · raw message

Signature · 1 line
2.51.0
Reviewed-by on v2 5/7
#7 lore raw
Quoted 11 lines · 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.c.inc | 277 ++++++--------------------------------
  2 files changed, 38 insertions(+), 241 deletions(-)
#8 lore raw

PATCH v2 6/7 kvm/mips: Remove support for 32-bit hosts

In reply to Philippe Mathieu-Daudé

See previous commit for rationale.

---
 meson.build | 2 --
 1 file changed, 2 deletions(-)
meson.build +0 -2
index afaefa01722..c5710a6a47c 100644
@@ -295,8 +295,6 @@ elif cpu == 'ppc'
   kvm_targets = ['ppc-softmmu']
 elif cpu == 'ppc64'
   kvm_targets = ['ppc-softmmu', 'ppc64-softmmu']
-elif cpu == 'mips'
-  kvm_targets = ['mips-softmmu', 'mipsel-softmmu']
 elif cpu == 'mips64'
   kvm_targets = ['mips-softmmu', 'mipsel-softmmu', 'mips64-softmmu', 'mips64el-softmmu']
 elif cpu == 'riscv32'
Signature · 1 line
2.51.0
Reviewed-by on v2 6/7
#9 lore raw

Re: [PATCH v2 6/7] kvm/mips: Remove support for 32-bit hosts

Quoted 12 lines · Philippe Mathieu-Daudé

See previous commit for rationale.

---
  meson.build | 2 --
  1 file changed, 2 deletions(-)
meson.build +0 -0
index afaefa01722..c5710a6a47c 100644

meson.build elif cpu == 'ppc' · line 300

Quoted 8 lines
meson.build +0 -2
@@ -295,8 +295,6 @@ elif cpu == 'ppc'
    kvm_targets = ['ppc-softmmu']
  elif cpu == 'ppc64'
    kvm_targets = ['ppc-softmmu', 'ppc64-softmmu']
-elif cpu == 'mips'
-  kvm_targets = ['mips-softmmu', 'mipsel-softmmu']
  elif cpu == 'mips64'
    kvm_targets = ['mips-softmmu', 'mipsel-softmmu', 'mips64-softmmu', 'mips64el-softmmu']
  elif cpu == 'riscv32'
#10 lore raw

PATCH v2 7/7 buildsys: Remove support for 32-bit MIPS hosts

In reply to Philippe Mathieu-Daudé

Stop detecting 32-bit MIPS host as supported, update the deprecation document. See previous commit for rationale.

---
 docs/about/deprecated.rst       | 13 +++++--------
 docs/about/removed-features.rst |  6 ++++++
 configure                       |  7 -------
 3 files changed, 11 insertions(+), 15 deletions(-)
docs/about/deprecated.rst +5 -8
index 67e527740c0..79cc34cfeb6 100644
@@ -172,17 +172,14 @@ This argument has always been ignored.
 Host Architectures
 ------------------
 
-Big endian MIPS since 7.2; 32-bit little endian MIPS since 9.2, MIPS since 11.0
-'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
+MIPS (since 11.0)
+'''''''''''''''''
 
-As Debian 10 ("Buster") moved into LTS the big endian 32 bit version of
-MIPS moved out of support making it hard to maintain our
-cross-compilation CI tests of the architecture. As we no longer have
-CI coverage support may bitrot away before the deprecation process
+MIPS is not supported by Debian 13 ("Trixie") and newer, making it hard to
+maintain our cross-compilation CI tests of the architecture. As we no longer
+have CI coverage support may bitrot away before the deprecation process
 completes.
 
-Likewise, MIPS is not supported by Debian 13 ("Trixie") and newer.
-
 System emulation on 32-bit x86 hosts (since 8.0)
 ''''''''''''''''''''''''''''''''''''''''''''''''
 
docs/about/removed-features.rst +6 -0
index a5338e44c24..53829f59e65 100644
@@ -896,6 +896,12 @@ work around the atomicity issues in system mode by running all vCPUs
 in a single thread context; in user mode atomicity was simply broken.
 From 10.0, QEMU has disabled configuration of 64-bit guests on 32-bit hosts.
 
+32-bit MIPS (since 11.0)
+''''''''''''''''''''''''
+
+Debian 12 "Bookworm" removed support for 32-bit MIPS, making it hard to
+maintain our cross-compilation CI tests of the architecture.
+
 Guest Emulator ISAs
 -------------------
 
configure +0 -7
index 6a633ac2b16..8236f43e8f9 100755
@@ -404,8 +404,6 @@ elif check_define _ARCH_PPC ; then
 elif check_define __mips__ ; then
   if check_define __mips64 ; then
     cpu="mips64"
-  else
-    cpu="mips"
   fi
 elif check_define __s390__ ; then
   if check_define __s390x__ ; then
@@ -473,11 +471,6 @@ case "$cpu" in
     host_arch=mips
     linux_arch=mips
     ;;
-  mips*)
-    cpu=mips
-    host_arch=mips
-    linux_arch=mips
-    ;;
 
   ppc)
     host_arch=ppc
Signature · 1 line
2.51.0
Reviewed-by on v2 7/7
#11 lore raw

Re: [PATCH v2 7/7] buildsys: Remove support for 32-bit MIPS hosts

Quoted 69 lines · Philippe Mathieu-Daudé

Stop detecting 32-bit MIPS host as supported, update the deprecation document. See previous commit for rationale.

---
  docs/about/deprecated.rst       | 13 +++++--------
  docs/about/removed-features.rst |  6 ++++++
  configure                       |  7 -------
  3 files changed, 11 insertions(+), 15 deletions(-)
docs/about/deprecated.rst +5 -8
index 67e527740c0..79cc34cfeb6 100644
@@ -172,17 +172,14 @@ This argument has always been ignored.
  Host Architectures
  ------------------
 
-Big endian MIPS since 7.2; 32-bit little endian MIPS since 9.2, MIPS since 11.0
-'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
+MIPS (since 11.0)
+'''''''''''''''''
 
-As Debian 10 ("Buster") moved into LTS the big endian 32 bit version of
-MIPS moved out of support making it hard to maintain our
-cross-compilation CI tests of the architecture. As we no longer have
-CI coverage support may bitrot away before the deprecation process
+MIPS is not supported by Debian 13 ("Trixie") and newer, making it hard to
+maintain our cross-compilation CI tests of the architecture. As we no longer
+have CI coverage support may bitrot away before the deprecation process
  completes.
 
-Likewise, MIPS is not supported by Debian 13 ("Trixie") and newer.
-
  System emulation on 32-bit x86 hosts (since 8.0)
  ''''''''''''''''''''''''''''''''''''''''''''''''
 
docs/about/removed-features.rst +6 -0
index a5338e44c24..53829f59e65 100644
@@ -896,6 +896,12 @@ work around the atomicity issues in system mode by running all vCPUs
  in a single thread context; in user mode atomicity was simply broken.
  From 10.0, QEMU has disabled configuration of 64-bit guests on 32-bit hosts.
 
+32-bit MIPS (since 11.0)
+''''''''''''''''''''''''
+
+Debian 12 "Bookworm" removed support for 32-bit MIPS, making it hard to
+maintain our cross-compilation CI tests of the architecture.
+
  Guest Emulator ISAs
  -------------------
 
configure +0 -2
index 6a633ac2b16..8236f43e8f9 100755
@@ -404,8 +404,6 @@ elif check_define _ARCH_PPC ; then
  elif check_define __mips__ ; then
    if check_define __mips64 ; then
      cpu="mips64"
-  else
-    cpu="mips"
    fi
  elif check_define __s390__ ; then
    if check_define __s390x__ ; then
@@ -473,11 +471,6 @@ case "$cpu" in
      host_arch=mips

configure case "$cpu" in · line 476

Quoted 10 lines
configure +0 -5
      linux_arch=mips
      ;;
-  mips*)
-    cpu=mips
-    host_arch=mips
-    linux_arch=mips
-    ;;
 
    ppc)
      host_arch=ppc
#12 lore raw

Re: [PATCH v2 7/7] buildsys: Remove support for 32-bit MIPS hosts

In reply to Philippe Mathieu-Daudé
Quoted 15 lines · Philippe Mathieu-Daudé

Stop detecting 32-bit MIPS host as supported, update the deprecation document. See previous commit for rationale.

---
 docs/about/deprecated.rst       | 13 +++++--------
 docs/about/removed-features.rst |  6 ++++++
 configure                       |  7 -------
 3 files changed, 11 insertions(+), 15 deletions(-)
docs/about/deprecated.rst +0 -0
index 67e527740c0..79cc34cfeb6 100644

docs/about/deprecated.rst This argument has always been ignored. · line 175

Quoted 4 lines
docs/about/deprecated.rst +0 -1
@@ -172,17 +172,14 @@ This argument has always been ignored.
 Host Architectures
 ------------------
 
-Big endian MIPS since 7.2; 32-bit little endian MIPS since 9.2, MIPS since 11.0

Did 'Big endian MIPS' refer to 32-bit, or both 32 & 64-bit ? I'm guessing it was only 32-bit BE, given the heading of your removed-features.txt change.

But then did "MIPS since 11.0" refer to 64-bit little endian only, or both big & little endian for 64-bit ?

Given the wide variety of things all ambiguously called "MIPS", its worth being explicit....

docs/about/deprecated.rst This argument has always been ignored. · line 176

Quoted 3 lines
docs/about/deprecated.rst +2 -1
-'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
+MIPS (since 11.0)
+'''''''''''''''''

...so if this is 64-bit MIPS, big & little endian, lets say so

Quoted 60 lines
docs/about/deprecated.rst +3 -6
-As Debian 10 ("Buster") moved into LTS the big endian 32 bit version of
-MIPS moved out of support making it hard to maintain our
-cross-compilation CI tests of the architecture. As we no longer have
-CI coverage support may bitrot away before the deprecation process
+MIPS is not supported by Debian 13 ("Trixie") and newer, making it hard to
+maintain our cross-compilation CI tests of the architecture. As we no longer
+have CI coverage support may bitrot away before the deprecation process
 completes.
 
-Likewise, MIPS is not supported by Debian 13 ("Trixie") and newer.
-
 System emulation on 32-bit x86 hosts (since 8.0)
 ''''''''''''''''''''''''''''''''''''''''''''''''
 
docs/about/removed-features.rst +6 -0
index a5338e44c24..53829f59e65 100644
@@ -896,6 +896,12 @@ work around the atomicity issues in system mode by running all vCPUs
 in a single thread context; in user mode atomicity was simply broken.
 From 10.0, QEMU has disabled configuration of 64-bit guests on 32-bit hosts.
 
+32-bit MIPS (since 11.0)
+''''''''''''''''''''''''
+
+Debian 12 "Bookworm" removed support for 32-bit MIPS, making it hard to
+maintain our cross-compilation CI tests of the architecture.
+
 Guest Emulator ISAs
 -------------------
 
configure +0 -7
index 6a633ac2b16..8236f43e8f9 100755
@@ -404,8 +404,6 @@ elif check_define _ARCH_PPC ; then
 elif check_define __mips__ ; then
   if check_define __mips64 ; then
     cpu="mips64"
-  else
-    cpu="mips"
   fi
 elif check_define __s390__ ; then
   if check_define __s390x__ ; then
@@ -473,11 +471,6 @@ case "$cpu" in
     host_arch=mips
     linux_arch=mips
     ;;
-  mips*)
-    cpu=mips
-    host_arch=mips
-    linux_arch=mips
-    ;;
 
   ppc)
     host_arch=ppc
Signature · 1 line
2.51.0

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#13 lore raw

Re: [PATCH v2 7/7] buildsys: Remove support for 32-bit MIPS hosts

Quoted 19 lines · Daniel P. Berrangé
Quoted 18 lines · Philippe Mathieu-Daudé

Stop detecting 32-bit MIPS host as supported, update the deprecation document. See previous commit for rationale.

---
  docs/about/deprecated.rst       | 13 +++++--------
  docs/about/removed-features.rst |  6 ++++++
  configure                       |  7 -------
  3 files changed, 11 insertions(+), 15 deletions(-)
docs/about/deprecated.rst +0 -0
index 67e527740c0..79cc34cfeb6 100644
@@ -172,17 +172,14 @@ This argument has always been ignored.
  Host Architectures
  ------------------
 
Quoted 5 lines

docs/about/deprecated.rst This argument has always been ignored. · line 175

Quoted 1 line
docs/about/deprecated.rst +0 -1
-Big endian MIPS since 7.2; 32-bit little endian MIPS since 9.2, MIPS since 11.0

Did 'Big endian MIPS' refer to 32-bit, or both 32 & 64-bit ? I'm guessing it was only 32-bit BE, given the heading of your removed-features.txt change.

Both.

* 7.2 deprecated:

- 32-bit big endian MIPS host
- 64-bit big endian MIPS host

Not deprecated remaining:

- 32-bit little endian MIPS host
- 64-bit little endian MIPS host

* 9.2 deprecated:

- 32-bit little endian MIPS host

Not deprecated remaining:

- 64-bit little endian MIPS host

* 11.0 deprecated:

- 64-bit little endian MIPS host

No non-deprecated MIPS host remaining

As of 11.0 we can remove what was deprecated previous 10.1.

Quoted 4 lines

But then did "MIPS since 11.0" refer to 64-bit little endian only, or both big & little endian for 64-bit ?

Quoted 8 lines

Given the wide variety of things all ambiguously called "MIPS", its worth being explicit....

docs/about/deprecated.rst This argument has always been ignored. · line 176

Quoted 3 lines
docs/about/deprecated.rst +2 -1
-'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
+MIPS (since 11.0)
+'''''''''''''''''

...so if this is 64-bit MIPS, big & little endian, lets say so

I'll update to "64-bit little endian MIPS".

Quoted 32 lines
Quoted 32 lines
docs/about/deprecated.rst +3 -6
-As Debian 10 ("Buster") moved into LTS the big endian 32 bit version of
-MIPS moved out of support making it hard to maintain our
-cross-compilation CI tests of the architecture. As we no longer have
-CI coverage support may bitrot away before the deprecation process
+MIPS is not supported by Debian 13 ("Trixie") and newer, making it hard to
+maintain our cross-compilation CI tests of the architecture. As we no longer
+have CI coverage support may bitrot away before the deprecation process
  completes.
 
-Likewise, MIPS is not supported by Debian 13 ("Trixie") and newer.
-
  System emulation on 32-bit x86 hosts (since 8.0)
  ''''''''''''''''''''''''''''''''''''''''''''''''
 
docs/about/removed-features.rst +6 -0
index a5338e44c24..53829f59e65 100644
@@ -896,6 +896,12 @@ work around the atomicity issues in system mode by running all vCPUs
  in a single thread context; in user mode atomicity was simply broken.
  From 10.0, QEMU has disabled configuration of 64-bit guests on 32-bit hosts.
 
+32-bit MIPS (since 11.0)
+''''''''''''''''''''''''
+
+Debian 12 "Bookworm" removed support for 32-bit MIPS, making it hard to
+maintain our cross-compilation CI tests of the architecture.
+
  Guest Emulator ISAs
  -------------------