tcg/ppc: Remove support for 32-bit hosts
cover tcg/ppc: 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. We removed the MIPS TCG backend [*], follow with PPC. Remove related buildsys and testing.
[*] https://lore.kernel.org/qemu-devel/[email protected]/
Philippe Mathieu-Daudé (3):
tcg/ppc: Remove support for 32-bit hosts
docker: Stop building 32-bit PowerPC images
buildsys: Remove support for 32-bit PPC hosts
configure | 13 +- include/qemu/host-utils.h | 2 +- include/qemu/timer.h | 13 +- tcg/ppc/tcg-target-has.h | 5 +- tcg/ppc/tcg-target-reg-bits.h | 8 +- disas/disas-host.c | 4 +- util/cacheflush.c | 4 +- tcg/ppc/tcg-target.c.inc | 383 ++++-------------- .../dockerfiles/debian-all-test-cross.docker | 1 - 9 files changed, 86 insertions(+), 347 deletions(-)
Signature · 1 line
2.51.0
PATCH 1/3 tcg/ppc: Remove support for 32-bit hosts
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 PPC hosts.
--- tcg/ppc/tcg-target-has.h | 5 +- tcg/ppc/tcg-target-reg-bits.h | 8 +- tcg/ppc/tcg-target.c.inc | 383 +++++++--------------------------- 3 files changed, 79 insertions(+), 317 deletions(-)
tcg/ppc/tcg-target-has.h +1 -4
@@ -17,12 +17,9 @@#define have_vsx (cpuinfo & CPUINFO_VSX)/* optional instructions */ -#if TCG_TARGET_REG_BITS ==64 #define TCG_TARGET_HAS_extr_i64_i32 0 -#endif -#define TCG_TARGET_HAS_qemu_ldst_i128 \ - (TCG_TARGET_REG_BITS == 64 && have_isa_2_07) +#define TCG_TARGET_HAS_qemu_ldst_i128 have_isa_2_07#define TCG_TARGET_HAS_tst 1
tcg/ppc/tcg-target-reg-bits.h +4 -4
@@ -7,10 +7,10 @@#ifndef TCG_TARGET_REG_BITS_H #define TCG_TARGET_REG_BITS_H -#ifdef _ARCH_PPC64 -# define TCG_TARGET_REG_BITS 64 -#else -# define TCG_TARGET_REG_BITS 32 +#ifndef _ARCH_PPC64 +# error Expecting 64-bit host architecture#endif +#define TCG_TARGET_REG_BITS 64 +#endif
tcg/ppc/tcg-target.c.inc +74 -309
654 lines not on this page · raw message
Signature · 1 line
2.51.0
PATCH 2/3 docker: Stop building 32-bit PowerPC images
In reply to Philippe Mathieu-Daudé32-bit host support is deprecated since commit 6d701c9bac1 ("meson: Deprecate 32-bit host support"). Besides, the Ubuntu distribution we are using to cross-build dropped support for 32-bit PPC as of Ubuntu 18.04 LTS [*].
Given the recent announcement that the powerpc architecture would be dropped from the upcoming Debian release, there has been a good deal of discussion about the future of this architecture in Ubuntu as well [...].
Unlike the ppc64el architecture, there is no longer upstream support for the 32-bit, big-endian powerpc architecture [...].
The Technical Board has therefore determined that the powerpc port should not be included in the Ubuntu 17.04 (zesty) release.
The powerpc architecture will continue to be supported as part of existing stable releases. Since powerpc is included in Ubuntu 16.04 LTS, security updates for existing packages can be expected until April 2021.
Next commits will remove support for 32-bit PPC hosts. Stop building the powerpc Docker image.
[*] https://lists.ubuntu.com/archives/ubuntu-devel-announce/2016-December/001199.html
--- configure | 1 - tests/docker/dockerfiles/debian-all-test-cross.docker | 1 - 2 files changed, 2 deletions(-)
configure +0 -1
@@ -1362,7 +1362,6 @@ fi : ${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"} : ${cross_prefix_riscv64="riscv64-linux-gnu-"}
tests/docker/dockerfiles/debian-all-test-cross.docker +0 -1
@@ -58,7 +58,6 @@ ENV AVAILABLE_COMPILERS gcc-aarch64-linux-gnu \ RUN if dpkg-architecture -e amd64; then \ export AVAILABLE_COMPILERS="${AVAILABLE_COMPILERS} gcc-hppa-linux-gnu libc6-dev-hppa-cross"; \ export AVAILABLE_COMPILERS="${AVAILABLE_COMPILERS} gcc-m68k-linux-gnu libc6-dev-m68k-cross"; \ - export AVAILABLE_COMPILERS="${AVAILABLE_COMPILERS} gcc-powerpc-linux-gnu libc6-dev-powerpc-cross"; \ export AVAILABLE_COMPILERS="${AVAILABLE_COMPILERS} gcc-powerpc64-linux-gnu libc6-dev-ppc64-cross"; \ export AVAILABLE_COMPILERS="${AVAILABLE_COMPILERS} gcc-sparc64-linux-gnu libc6-dev-sparc64-cross"; \ fi && \
Signature · 1 line
2.51.0
Re: [PATCH 2/3] docker: Stop building 32-bit PowerPC images
Quoted 4 lines · Philippe Mathieu-Daudé
32-bit host support is deprecated since commit
6d701c9bac1("meson: Deprecate 32-bit host support"). Besides, the Ubuntu distribution we are using to cross-build dropped support for 32-bit PPC as of Ubuntu 18.04 LTS [*].
Erm NAK. debian-all-test-cross.docker holds the cross compilers for building test cases and we are not dropping 32 bit guest support.
We may need to hive more off into legacy-test-cross if they are being dropped from Trixie.
Quoted 52 lines
Given the recent announcement that the powerpc architecture would be dropped from the upcoming Debian release, there has been a good deal of discussion about the future of this architecture in Ubuntu as well [...].
Unlike the ppc64el architecture, there is no longer upstream support for the 32-bit, big-endian powerpc architecture [...].
The Technical Board has therefore determined that the powerpc port should not be included in the Ubuntu 17.04 (zesty) release.
The powerpc architecture will continue to be supported as part of existing stable releases. Since powerpc is included in Ubuntu 16.04 LTS, security updates for existing packages can be expected until April 2021.
Next commits will remove support for 32-bit PPC hosts. Stop building the powerpc Docker image.
[*] https://lists.ubuntu.com/archives/ubuntu-devel-announce/2016-December/001199.html
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- configure | 1 - tests/docker/dockerfiles/debian-all-test-cross.docker | 1 - 2 files changed, 2 deletions(-)configure +0
-1@@ -1362,7 +1362,6 @@ fi : ${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"} : ${cross_prefix_riscv64="riscv64-linux-gnu-"}tests/docker/dockerfiles/debian-all-test-cross.docker +0
-1@@ -58,7 +58,6 @@ ENV AVAILABLE_COMPILERS gcc-aarch64-linux-gnu \ RUN if dpkg-architecture -e amd64; then \ export AVAILABLE_COMPILERS="${AVAILABLE_COMPILERS} gcc-hppa-linux-gnu libc6-dev-hppa-cross"; \ export AVAILABLE_COMPILERS="${AVAILABLE_COMPILERS} gcc-m68k-linux-gnu libc6-dev-m68k-cross"; \ - export AVAILABLE_COMPILERS="${AVAILABLE_COMPILERS} gcc-powerpc-linux-gnu libc6-dev-powerpc-cross"; \ export AVAILABLE_COMPILERS="${AVAILABLE_COMPILERS} gcc-powerpc64-linux-gnu libc6-dev-ppc64-cross"; \ export AVAILABLE_COMPILERS="${AVAILABLE_COMPILERS} gcc-sparc64-linux-gnu libc6-dev-sparc64-cross"; \ fi && \
Signature · 2 lines
Alex Bennée Virtualisation Tech Lead @ Linaro
PATCH 3/3 buildsys: Remove support for 32-bit PPC hosts
In reply to Philippe Mathieu-DaudéStop detecting 32-bit PPC host as supported. See previous commit for rationale.
--- configure | 12 ++---------- include/qemu/host-utils.h | 2 +- include/qemu/timer.h | 13 +------------ disas/disas-host.c | 4 +--- util/cacheflush.c | 4 ++-- 5 files changed, 7 insertions(+), 28 deletions(-)
configure +2 -10
@@ -391,15 +391,12 @@ elif check_define __sparc__ ; then else cpu="sparc" fi -elif check_define _ARCH_PPC ; then - if check_define _ARCH_PPC64 ; then +elif check_define _ARCH_PPC64 ; then if check_define _LITTLE_ENDIAN ; then cpu="ppc64le" else cpu="ppc64" fi - else - cpu="ppc" fi elif check_define __mips__ ; then if check_define __mips64 ; then
@@ -479,11 +476,6 @@ case "$cpu" in linux_arch=mips ;; - ppc) - host_arch=ppc - linux_arch=powerpc - CPU_CFLAGS="-m32" - ;; ppc64) host_arch=ppc64 linux_arch=powerpc
@@ -1477,7 +1469,7 @@ probe_target_compiler() { container_image=debian-all-test-cross container_cross_prefix=mips64-linux-gnuabi64- ;; - ppc|ppc64|ppc64le) + ppc64|ppc64le) container_image=debian-all-test-cross container_cross_prefix=powerpc${target_arch#ppc}-linux-gnu- ;;
include/qemu/host-utils.h +1 -1
@@ -806,7 +806,7 @@ static inline uint64_t udiv_qrnnd(uint64_t *r, uint64_t n1, asm("dlgr %0, %1" :"+r" (n) :"r" (d)); *r = n >>64 ;return n; -#elif defined(_ARCH_PPC64) && defined(_ARCH_PWR7) +#elif defined(_ARCH_PWR7)/* From Power ISA 2.06, programming note for divdeu. */ uint64_t q1, q2,Q , r1, r2,R ; asm("divdeu %0,%2,%4; divdu %1,%3,%4"
include/qemu/timer.h +1 -12
@@ -850,12 +850,11 @@ static inline int64_t get_clock(void)/*******************************************/ /* host CPU ticks (if available) */ -#if defined(_ARCH_PPC) +#if defined(_ARCH_PPC64)static inline int64_t cpu_get_host_ticks (void ) {int64_t retval; -#ifdef _ARCH_PPC64/* This reads timebase in one 64bit go and includes Cell workaround from: http://ozlabs.org/pipermail/linuxppc-dev/2006-October/027052.html */
@@ -863,16 +862,6 @@ static inline int64_t cpu_get_host_ticks(void) "cmpwi %0,0\n\t" "beq- $-8" : "=r" (retval)); -#else -/* http://ozlabs.org/pipermail/linuxppc-dev/1999-October/003889.html */ -unsigned long junk; - __asm__ __volatile__ ("mfspr %1,269\n\t" /* mftbu */ -"mfspr %L0,268\n\t" /* mftb */ -"mfspr %0,269\n\t" /* mftbu */ -"cmpw %0,%1\n\t" -"bne $-16" - :"=r" (retval),"=r" (junk)); -#endif return retval; }
disas/disas-host.c +1 -3
@@ -56,11 +56,9 @@ static void initialize_debug_host(CPUDebug *s) s->info.cap_mode =CS_MODE_64 ; s->info.cap_insn_unit =1 ; s->info.cap_insn_split =8 ; -#elif defined(_ARCH_PPC) +#elif defined(_ARCH_PPC64) s->info.cap_arch =CS_ARCH_PPC ; -# ifdef _ARCH_PPC64 s->info.cap_mode =CS_MODE_64 ; -# endif #elif defined(__riscv)#if defined(_ILP32) || (__riscv_xlen ==32 ) s->info.print_insn = print_insn_riscv32;
util/cacheflush.c +2 -2
@@ -153,7 +153,7 @@ static void arch_cache_info(int *isize, int *dsize) } } -#elif defined(_ARCH_PPC) && defined(__linux__) +#elif defined(_ARCH_PPC64) && defined(__linux__)# include "elf.h" static void arch_cache_info (int *isize,int *dsize)
@@ -187,7 +187,7 @@ static void fallback_cache_info(int *isize, int *dsize) }else if (*dsize) { *isize = *dsize; }else { -#if defined(_ARCH_PPC) +#if defined(_ARCH_PPC64)/* * For PPC, we're going to use the cache sizes computed for * flush_idcache_range. Which means that we must use the
Signature · 1 line
2.51.0