linux-user: Remove the deprecated ppc64abi32 target
PATCH 1/1 linux-user: Remove the deprecated ppc64abi32 target
It's likely broken, and nobody cared for picking it up again during the deprecation phase, so let's remove this now.
Since this is the last entry in deprecated_targets_list, remove the related code in the configure script, too.
--- .gitlab-ci.d/buildtest.yml | 27 ----------------- configs/targets/ppc64abi32-linux-user.mak | 8 ----- configure | 29 +------------------ docs/about/deprecated.rst | 7 ----- docs/about/removed-features.rst | 8 +++++ docs/user/main.rst | 1 - linux-user/elfload.c | 4 +-- linux-user/ppc/signal.c | 11 ++----- linux-user/ppc/target_syscall.h | 4 +-- linux-user/syscall_defs.h | 6 ++-- .../dockerfiles/debian-ppc64el-cross.docker | 2 +- tests/tcg/configure.sh | 2 +- 12 files changed, 21 insertions(+), 88 deletions(-) delete mode 100644 configs/targets/ppc64abi32-linux-user.mak
.gitlab-ci.d/buildtest.yml +0 -27
@@ -473,33 +473,6 @@ tsan-build: TARGETS: x86_64-softmmu ppc64-softmmu riscv64-softmmu x86_64-linux-user MAKE_CHECK_ARGS: bench V=1 -# These targets are on the way out -build-deprecated: - extends: .native_build_job_template - needs: - job: amd64-debian-user-cross-container - variables: - IMAGE: debian-all-test-cross - CONFIGURE_ARGS: --disable-tools - MAKE_CHECK_ARGS: build-tcg - TARGETS: ppc64abi32-linux-user - artifacts: - expire_in: 2 days - paths: - - build - -# We split the check-tcg step as test failures are expected but we still -# want to catch the build breaking. -check-deprecated: - extends: .native_test_job_template - needs: - - job: build-deprecated - artifacts: true - variables: - IMAGE: debian-all-test-cross - MAKE_CHECK_ARGS: check-tcg - allow_failure: true - # gprof/gcov are GCC features build-gprof-gcov: extends: .native_build_job_template
configs/targets/ppc64abi32-linux-user.mak deleted +0 -8
@@ -1,8 +0,0 @@ -TARGET_ARCH=ppc64 -TARGET_ABI32=y -TARGET_BASE_ARCH=ppc -TARGET_ABI_DIR=ppc -TARGET_SYSTBL_ABI=common,nospu,32 -TARGET_SYSTBL=syscall.tbl -TARGET_WORDS_BIGENDIAN=y -TARGET_XML_FILES= gdb-xml/power64-core.xml gdb-xml/power-fpu.xml gdb-xml/power-altivec.xml gdb-xml/power-spe.xml gdb-xml/power-vsx.xml
configure +1 -28
@@ -1295,8 +1295,6 @@ if [ "$ARCH" = "unknown" ]; then fi default_target_list="" -deprecated_targets_list=ppc64abi32-linux-user -deprecated_features="" mak_wilds="" if [ "$softmmu" = "yes" ]; then
@@ -1309,16 +1307,6 @@ if [ "$bsd_user" = "yes" ]; then mak_wilds="${mak_wilds} $source_path/configs/targets/*-bsd-user.mak" fi -# If the user doesn't explicitly specify a deprecated target we will -# skip it. -if test -z "$target_list"; then - if test -z "$target_list_exclude"; then - target_list_exclude="$deprecated_targets_list" - else - target_list_exclude="$target_list_exclude,$deprecated_targets_list" - fi -fi - for config in $mak_wilds; do target="$(basename "$config" .mak)" if echo "$target_list_exclude" | grep -vq "$target"; then
@@ -1337,11 +1325,9 @@ Standard options: --prefix=PREFIX install in PREFIX [$prefix] --interp-prefix=PREFIX where to find shared libraries, etc. use %M for cpu name [$interp_prefix] - --target-list=LIST set target list (default: build all non-deprecated) + --target-list=LIST set target list (default: build all) $(echo Available targets: $default_target_list | \ fold -s -w 53 | sed -e 's/^/ /') -$(echo Deprecated targets: $deprecated_targets_list | \ - fold -s -w 53 | sed -e 's/^/ /') --target-list-exclude=LIST exclude a set of targets from the default target-list Advanced options (experts only):
@@ -1827,13 +1813,6 @@ else done fi -for target in $target_list; do - # if a deprecated target is enabled we note it here - if echo "$deprecated_targets_list" | grep -q "$target"; then - add_to deprecated_features $target - fi -done - # see if system emulation was really requested case " $target_list " in *"-softmmu "*) softmmu=yes
@@ -4017,12 +3996,6 @@ else fi fi -if test -n "${deprecated_features}"; then - echo "Warning, deprecated features enabled." - echo "Please see docs/about/deprecated.rst" - echo " features: ${deprecated_features}" -fi - # Create list of config switches that should be poisoned in common code... # but filter out CONFIG_TCG and CONFIG_USER_ONLY which are special. target_configs_h=$(ls *-config-devices.h *-config-target.h 2>/dev/null)
docs/about/deprecated.rst +0 -7
@@ -396,13 +396,6 @@ The above, converted to the current supported format:: linux-user mode CPUs -------------------- -``ppc64abi32`` CPUs (since 5.2) -''''''''''''''''''''''''''''''' - -The ``ppc64abi32`` architecture has a number of issues which regularly -trip up our CI testing and is suspected to be quite broken. For that -reason the maintainers strongly suspect no one actually uses it. - MIPS ``I7200`` CPU (since 5.2) ''''''''''''''''''''''''''''''
docs/about/removed-features.rst +8 -0
@@ -594,6 +594,14 @@ the upstream Linux kernel in 2018, and it has also been dropped from glibc, so there is no new Linux development taking place with this architecture. For running the old binaries, you can use older versions of QEMU. +``ppc64abi32`` CPUs (removed in 7.0) +'''''''''''''''''''''''''''''''''''' + +The ``ppc64abi32`` architecture has a number of issues which regularly +tripped up the CI testing and was suspected to be quite broken. For that +reason the maintainers strongly suspected no one actually used it. + + System emulator devices -----------------------
docs/user/main.rst +0 -1
@@ -166,7 +166,6 @@ Other binaries - user mode (PowerPC) - * ``qemu-ppc64abi32`` TODO. * ``qemu-ppc64`` TODO. * ``qemu-ppc`` TODO.
linux-user/elfload.c +2 -2
@@ -718,7 +718,7 @@ static inline void init_thread(struct target_pt_regs *regs,#define ELF_MACHINE PPC_ELF_MACHINE#define ELF_START_MMAP 0x80000000 -#if defined(TARGET_PPC64 ) && !defined(TARGET_ABI32 ) +#if defined(TARGET_PPC64 )#define elf_check_arch (x) ( (x) == EM_PPC64 )
@@ -870,7 +870,7 @@ static uint32_t get_elf_hwcap2(void)static inline void init_thread (struct target_pt_regs *_regs,struct image_info *infop) { _regs->gpr[1 ] = infop->start_stack; -#if defined(TARGET_PPC64 ) && !defined(TARGET_ABI32 ) +#if defined(TARGET_PPC64 )if (get_ppc64_abi (infop) <2 ) {uint64_t val;get_user_u64 (val, infop->entry +8 );
linux-user/ppc/signal.c +3 -8
@@ -477,9 +477,7 @@ void setup_rt_frame(int sig, struct target_sigaction *ka,int i, err =0 ;#if defined(TARGET_PPC64 )struct target_sigcontext *sc =0 ; -#if !defined(TARGET_ABI32 )struct image_info *image = ((TaskState *)thread_cpu->opaque)->info; -#endif #endif rt_sf_addr =get_sigframe (ka, env,sizeof (*rt_sf));
@@ -530,7 +528,7 @@ void setup_rt_frame(int sig, struct target_sigaction *ka, env->gpr[5 ] = (target_ulong )h2g (&rt_sf->uc); env->gpr[6 ] = (target_ulong )h2g (rt_sf); -#if defined(TARGET_PPC64 ) && !defined(TARGET_ABI32 ) +#if defined(TARGET_PPC64 )if (get_ppc64_abi (image) <2 ) {/* ELFv1 PPC64 function pointers are pointers to OPD entries. */ struct target_func_ptr *handler =
@@ -562,7 +560,7 @@ sigsegv: } -#if !defined(TARGET_PPC64 ) || defined(TARGET_ABI32 ) +#if !defined(TARGET_PPC64 )long do_sigreturn (CPUPPCState *env) {struct target_sigcontext *sc =NULL ;
@@ -575,12 +573,9 @@ long do_sigreturn(CPUPPCState *env)if (!lock_user_struct (VERIFY_READ , sc, sc_addr,1 )) goto sigsegv; -#if defined(TARGET_PPC64 ) - set.sig[0 ] = sc->oldmask + ((uint64_t )(sc->_unused[3 ]) <<32 ); -#else __get_user (set.sig[0 ], &sc->oldmask);__get_user (set.sig[1 ], &sc->_unused[3 ]); -#endif +target_to_host_sigset_internal (&blocked, &set);set_sigmask (&blocked);
linux-user/ppc/target_syscall.h +2 -2
@@ -36,7 +36,7 @@ struct target_pt_regs {abi_ulong link;abi_ulong xer;abi_ulong ccr; -#if defined(TARGET_PPC64 ) && !defined(TARGET_ABI32 ) +#if defined(TARGET_PPC64 )abi_ulong softe;#else abi_ulong mq;/* 601 only (not used at present) */
@@ -58,7 +58,7 @@ struct target_revectored_struct {* flags masks */ -#if defined(TARGET_PPC64 ) && !defined(TARGET_ABI32 ) +#if defined(TARGET_PPC64 )#ifdef TARGET_WORDS_BIGENDIAN #define UNAME_MACHINE "ppc64"#else
linux-user/syscall_defs.h +3 -3
@@ -1607,7 +1607,7 @@ struct target_stat64 {struct target_stat {abi_ulong st_dev;abi_ulong st_ino; -#if defined(TARGET_PPC64 ) && !defined(TARGET_ABI32 ) +#if defined(TARGET_PPC64 )abi_ulong st_nlink;unsigned int st_mode;#else
@@ -1628,12 +1628,12 @@ struct target_stat {abi_ulong target_st_ctime_nsec;abi_ulong __unused4;abi_ulong __unused5; -#if defined(TARGET_PPC64 ) && !defined(TARGET_ABI32 ) +#if defined(TARGET_PPC64 )abi_ulong __unused6;#endif }; -#if !defined(TARGET_PPC64 ) || defined(TARGET_ABI32 ) +#if !defined(TARGET_PPC64 )#define TARGET_HAS_STRUCT_STAT64 struct QEMU_PACKED target_stat64 {unsigned long long st_dev;
tests/docker/dockerfiles/debian-ppc64el-cross.docker +1 -1
@@ -16,7 +16,7 @@ RUN apt update && \ # Specify the cross prefix for this image (see tests/docker/common.rc) ENV QEMU_CONFIGURE_OPTS --cross-prefix=powerpc64le-linux-gnu- -ENV DEF_TARGET_LIST ppc64-softmmu,ppc64-linux-user,ppc64abi32-linux-user +ENV DEF_TARGET_LIST ppc64-softmmu,ppc64-linux-user # Install extra libraries to increase code coverage RUN apt update && \
tests/tcg/configure.sh +1 -1
@@ -165,7 +165,7 @@ for target in $target_list; do container_image=debian-nios2-cross container_cross_cc=nios2-linux-gnu-gcc ;; - ppc-*|ppc64abi32-*) + ppc-*) container_hosts=x86_64 container_image=debian-powerpc-test-cross container_cross_cc=powerpc-linux-gnu-gcc-10
Signature · 1 line
2.27.0
Quoted 5 lines · Thomas Huth
It's likely broken, and nobody cared for picking it up again during the deprecation phase, so let's remove this now.
Since this is the last entry in
deprecated_targets_list, remove the related code in the configure script, too.
Can we keep that part to keep the gate open to deprecate more targets / features?
Quoted 84 lines
Signed-off-by Thomas Huth <[email protected]>--- .gitlab-ci.d/buildtest.yml | 27 ----------------- configs/targets/ppc64abi32-linux-user.mak | 8 ----- configure | 29 +------------------ docs/about/deprecated.rst | 7 ----- docs/about/removed-features.rst | 8 +++++ docs/user/main.rst | 1 - linux-user/elfload.c | 4 +-- linux-user/ppc/signal.c | 11 ++----- linux-user/ppc/target_syscall.h | 4 +-- linux-user/syscall_defs.h | 6 ++-- .../dockerfiles/debian-ppc64el-cross.docker | 2 +- tests/tcg/configure.sh | 2 +- 12 files changed, 21 insertions(+), 88 deletions(-) delete mode 100644 configs/targets/ppc64abi32-linux-user.makconfigure +1
-28@@ -1295,8 +1295,6 @@ if [ "$ARCH" = "unknown" ]; then fi default_target_list="" -deprecated_targets_list=ppc64abi32-linux-user -deprecated_features="" mak_wilds="" if [ "$softmmu" = "yes" ]; then@@ -1309,16 +1307,6 @@ if [ "$bsd_user" = "yes" ]; then mak_wilds="${mak_wilds} $source_path/configs/targets/*-bsd-user.mak" fi -# If the user doesn't explicitly specify a deprecated target we will -# skip it. -if test -z "$target_list"; then - if test -z "$target_list_exclude"; then - target_list_exclude="$deprecated_targets_list" - else - target_list_exclude="$target_list_exclude,$deprecated_targets_list" - fi -fi - for config in $mak_wilds; do target="$(basename "$config" .mak)" if echo "$target_list_exclude" | grep -vq "$target"; then@@ -1337,11 +1325,9 @@ Standard options: --prefix=PREFIX install in PREFIX [$prefix] --interp-prefix=PREFIX where to find shared libraries, etc. use %M for cpu name [$interp_prefix] - --target-list=LIST set target list (default: build all non-deprecated) + --target-list=LIST set target list (default: build all) $(echo Available targets: $default_target_list | \ fold -s -w 53 | sed -e 's/^/ /') -$(echo Deprecated targets: $deprecated_targets_list | \ - fold -s -w 53 | sed -e 's/^/ /') --target-list-exclude=LIST exclude a set of targets from the default target-list Advanced options (experts only):@@ -1827,13 +1813,6 @@ else done fi -for target in $target_list; do - # if a deprecated target is enabled we note it here - if echo "$deprecated_targets_list" | grep -q "$target"; then - add_to deprecated_features $target - fi -done - # see if system emulation was really requested case " $target_list " in *"-softmmu "*) softmmu=yes@@ -4017,12 +3996,6 @@ else fi fi -if test -n "${deprecated_features}"; then - echo "Warning, deprecated features enabled." - echo "Please see docs/about/deprecated.rst" - echo " features: ${deprecated_features}" -fi -
Quoted 9 lines · Philippe Mathieu-Daudé
Quoted 5 lines · Thomas Huth
It's likely broken, and nobody cared for picking it up again during the deprecation phase, so let's remove this now.
Since this is the last entry in
deprecated_targets_list, remove the related code in the configure script, too.Can we keep that part to keep the gate open to deprecate more targets / features?
It can simply be added again once we need it. Keeping it around would make the output of "configure --help" look weird, I think.
Thomas
Alex Bennée
Acked-byQuoted 9 lines · Philippe Mathieu-Daudé
Quoted 5 lines · Thomas Huth
It's likely broken, and nobody cared for picking it up again during the deprecation phase, so let's remove this now.
Since this is the last entry in
deprecated_targets_list, remove the related code in the configure script, too.Can we keep that part to keep the gate open to deprecate more targets / features?
I'm agnostic about it because it is essentially dead code so can silently bit-rot. We can always resurrect the code from CI later if we need to but I suspect future deprecation should be handled in meson?
Signature · 1 line
Alex Bennée
Quoted 9 lines · Alex Bennée
Quoted 7 lines · Philippe Mathieu-Daudé
Quoted 5 lines · Thomas Huth
It's likely broken, and nobody cared for picking it up again during the deprecation phase, so let's remove this now.
Since this is the last entry in
deprecated_targets_list, remove the related code in the configure script, too.
Quoted 6 lines
Quoted 2 lines
Can we keep that part to keep the gate open to deprecate more targets / features?
I'm agnostic about it because it is essentially dead code so can silently bit-rot. We can always resurrect the code from CI later if we need to but I suspect future deprecation should be handled in meson?
OK, fair enough.
Quoted 2 lines
Acked-by Alex Bennée <[email protected]>
Quoted 21 lines · Thomas Huth
It's likely broken, and nobody cared for picking it up again during the deprecation phase, so let's remove this now.
Since this is the last entry in
deprecated_targets_list, remove the related code in the configure script, too.Signed-off-by Thomas Huth<[email protected]>--- .gitlab-ci.d/buildtest.yml | 27 ----------------- configs/targets/ppc64abi32-linux-user.mak | 8 ----- configure | 29 +------------------ docs/about/deprecated.rst | 7 ----- docs/about/removed-features.rst | 8 +++++ docs/user/main.rst | 1 - linux-user/elfload.c | 4 +-- linux-user/ppc/signal.c | 11 ++----- linux-user/ppc/target_syscall.h | 4 +-- linux-user/syscall_defs.h | 6 ++-- .../dockerfiles/debian-ppc64el-cross.docker | 2 +- tests/tcg/configure.sh | 2 +- 12 files changed, 21 insertions(+), 88 deletions(-)
Quoted 1 line
delete mode 100644 configs/targets/ppc64abi32-linux-user.mak
r~
Quoted 7 lines · Thomas Huth
It's likely broken, and nobody cared for picking it up again during the deprecation phase, so let's remove this now.
Since this is the last entry in
deprecated_targets_list, remove the related code in the configure script, too.Signed-off-by Thomas Huth <[email protected]>
Thanks,
C.
Quoted 332 lines
--- .gitlab-ci.d/buildtest.yml | 27 ----------------- configs/targets/ppc64abi32-linux-user.mak | 8 ----- configure | 29 +------------------ docs/about/deprecated.rst | 7 ----- docs/about/removed-features.rst | 8 +++++ docs/user/main.rst | 1 - linux-user/elfload.c | 4 +-- linux-user/ppc/signal.c | 11 ++----- linux-user/ppc/target_syscall.h | 4 +-- linux-user/syscall_defs.h | 6 ++-- .../dockerfiles/debian-ppc64el-cross.docker | 2 +- tests/tcg/configure.sh | 2 +- 12 files changed, 21 insertions(+), 88 deletions(-)delete mode 100644 configs/targets/ppc64abi32-linux-user.mak
.gitlab-ci.d/buildtest.yml +0
-27@@ -473,33 +473,6 @@ tsan-build: TARGETS: x86_64-softmmu ppc64-softmmu riscv64-softmmu x86_64-linux-user MAKE_CHECK_ARGS: bench V=1 -# These targets are on the way out -build-deprecated: - extends: .native_build_job_template - needs: - job: amd64-debian-user-cross-container - variables: - IMAGE: debian-all-test-cross - CONFIGURE_ARGS: --disable-tools - MAKE_CHECK_ARGS: build-tcg - TARGETS: ppc64abi32-linux-user - artifacts: - expire_in: 2 days - paths: - - build - -# We split the check-tcg step as test failures are expected but we still -# want to catch the build breaking. -check-deprecated: - extends: .native_test_job_template - needs: - - job: build-deprecated - artifacts: true - variables: - IMAGE: debian-all-test-cross - MAKE_CHECK_ARGS: check-tcg - allow_failure: true - # gprof/gcov are GCC features build-gprof-gcov: extends: .native_build_job_templateconfigs/targets/ppc64abi32-linux-user.mak deleted +0
-8@@ -1,8 +0,0 @@ -TARGET_ARCH=ppc64 -TARGET_ABI32=y -TARGET_BASE_ARCH=ppc -TARGET_ABI_DIR=ppc -TARGET_SYSTBL_ABI=common,nospu,32 -TARGET_SYSTBL=syscall.tbl -TARGET_WORDS_BIGENDIAN=y -TARGET_XML_FILES= gdb-xml/power64-core.xml gdb-xml/power-fpu.xml gdb-xml/power-altivec.xml gdb-xml/power-spe.xml gdb-xml/power-vsx.xmlconfigure +1
-28@@ -1295,8 +1295,6 @@ if [ "$ARCH" = "unknown" ]; then fi default_target_list="" -deprecated_targets_list=ppc64abi32-linux-user -deprecated_features="" mak_wilds="" if [ "$softmmu" = "yes" ]; then@@ -1309,16 +1307,6 @@ if [ "$bsd_user" = "yes" ]; then mak_wilds="${mak_wilds} $source_path/configs/targets/*-bsd-user.mak" fi -# If the user doesn't explicitly specify a deprecated target we will -# skip it. -if test -z "$target_list"; then - if test -z "$target_list_exclude"; then - target_list_exclude="$deprecated_targets_list" - else - target_list_exclude="$target_list_exclude,$deprecated_targets_list" - fi -fi - for config in $mak_wilds; do target="$(basename "$config" .mak)" if echo "$target_list_exclude" | grep -vq "$target"; then@@ -1337,11 +1325,9 @@ Standard options: --prefix=PREFIX install in PREFIX [$prefix] --interp-prefix=PREFIX where to find shared libraries, etc. use %M for cpu name [$interp_prefix] - --target-list=LIST set target list (default: build all non-deprecated) + --target-list=LIST set target list (default: build all) $(echo Available targets: $default_target_list | \ fold -s -w 53 | sed -e 's/^/ /') -$(echo Deprecated targets: $deprecated_targets_list | \ - fold -s -w 53 | sed -e 's/^/ /') --target-list-exclude=LIST exclude a set of targets from the default target-list Advanced options (experts only):@@ -1827,13 +1813,6 @@ else done fi -for target in $target_list; do - # if a deprecated target is enabled we note it here - if echo "$deprecated_targets_list" | grep -q "$target"; then - add_to deprecated_features $target - fi -done - # see if system emulation was really requested case " $target_list " in *"-softmmu "*) softmmu=yes@@ -4017,12 +3996,6 @@ else fi fi -if test -n "${deprecated_features}"; then - echo "Warning, deprecated features enabled." - echo "Please see docs/about/deprecated.rst" - echo " features: ${deprecated_features}" -fi - # Create list of config switches that should be poisoned in common code... # but filter out CONFIG_TCG and CONFIG_USER_ONLY which are special. target_configs_h=$(ls *-config-devices.h *-config-target.h 2>/dev/null)docs/about/deprecated.rst +0
-7@@ -396,13 +396,6 @@ The above, converted to the current supported format:: linux-user mode CPUs -------------------- -``ppc64abi32`` CPUs (since 5.2) -''''''''''''''''''''''''''''''' - -The ``ppc64abi32`` architecture has a number of issues which regularly -trip up our CI testing and is suspected to be quite broken. For that -reason the maintainers strongly suspect no one actually uses it. - MIPS ``I7200`` CPU (since 5.2) ''''''''''''''''''''''''''''''docs/about/removed-features.rst +8
-0@@ -594,6 +594,14 @@ the upstream Linux kernel in 2018, and it has also been dropped from glibc, so there is no new Linux development taking place with this architecture. For running the old binaries, you can use older versions of QEMU. +``ppc64abi32`` CPUs (removed in 7.0) +'''''''''''''''''''''''''''''''''''' + +The ``ppc64abi32`` architecture has a number of issues which regularly +tripped up the CI testing and was suspected to be quite broken. For that +reason the maintainers strongly suspected no one actually used it. + + System emulator devices -----------------------docs/user/main.rst +0
-1@@ -166,7 +166,6 @@ Other binaries - user mode (PowerPC) - * ``qemu-ppc64abi32`` TODO. * ``qemu-ppc64`` TODO. * ``qemu-ppc`` TODO.linux-user/elfload.c +2
-2@@ -718,7 +718,7 @@ static inline void init_thread(struct target_pt_regs *regs,#define ELF_MACHINE PPC_ELF_MACHINE#define ELF_START_MMAP 0x80000000 -#if defined(TARGET_PPC64 ) && !defined(TARGET_ABI32 ) +#if defined(TARGET_PPC64 )#define elf_check_arch (x) ( (x) == EM_PPC64 )@@ -870,7 +870,7 @@ static uint32_t get_elf_hwcap2(void)static inline void init_thread (struct target_pt_regs *_regs,struct image_info *infop) { _regs->gpr[1 ] = infop->start_stack; -#if defined(TARGET_PPC64 ) && !defined(TARGET_ABI32 ) +#if defined(TARGET_PPC64 )if (get_ppc64_abi (infop) <2 ) {uint64_t val;get_user_u64 (val, infop->entry +8 );linux-user/ppc/signal.c +3
-8@@ -477,9 +477,7 @@ void setup_rt_frame(int sig, struct target_sigaction *ka,int i, err =0 ;#if defined(TARGET_PPC64 )struct target_sigcontext *sc =0 ; -#if !defined(TARGET_ABI32 )struct image_info *image = ((TaskState *)thread_cpu->opaque)->info; -#endif #endif rt_sf_addr =get_sigframe (ka, env,sizeof (*rt_sf));@@ -530,7 +528,7 @@ void setup_rt_frame(int sig, struct target_sigaction *ka, env->gpr[5 ] = (target_ulong )h2g (&rt_sf->uc); env->gpr[6 ] = (target_ulong )h2g (rt_sf); -#if defined(TARGET_PPC64 ) && !defined(TARGET_ABI32 ) +#if defined(TARGET_PPC64 )if (get_ppc64_abi (image) <2 ) {/* ELFv1 PPC64 function pointers are pointers to OPD entries. */ struct target_func_ptr *handler =@@ -562,7 +560,7 @@ sigsegv: } -#if !defined(TARGET_PPC64 ) || defined(TARGET_ABI32 ) +#if !defined(TARGET_PPC64 )long do_sigreturn (CPUPPCState *env) {struct target_sigcontext *sc =NULL ;@@ -575,12 +573,9 @@ long do_sigreturn(CPUPPCState *env)if (!lock_user_struct (VERIFY_READ , sc, sc_addr,1 )) goto sigsegv; -#if defined(TARGET_PPC64 ) - set.sig[0 ] = sc->oldmask + ((uint64_t )(sc->_unused[3 ]) <<32 ); -#else __get_user (set.sig[0 ], &sc->oldmask);__get_user (set.sig[1 ], &sc->_unused[3 ]); -#endif +target_to_host_sigset_internal (&blocked, &set);set_sigmask (&blocked);linux-user/ppc/target_syscall.h +2
-2@@ -36,7 +36,7 @@ struct target_pt_regs {abi_ulong link;abi_ulong xer;abi_ulong ccr; -#if defined(TARGET_PPC64 ) && !defined(TARGET_ABI32 ) +#if defined(TARGET_PPC64 )abi_ulong softe;#else abi_ulong mq;/* 601 only (not used at present) */ @@ -58,7 +58,7 @@ struct target_revectored_struct {* flags masks */ -#if defined(TARGET_PPC64 ) && !defined(TARGET_ABI32 ) +#if defined(TARGET_PPC64 )#ifdef TARGET_WORDS_BIGENDIAN #define UNAME_MACHINE "ppc64"#else linux-user/syscall_defs.h +3
-3@@ -1607,7 +1607,7 @@ struct target_stat64 {struct target_stat {abi_ulong st_dev;abi_ulong st_ino; -#if defined(TARGET_PPC64 ) && !defined(TARGET_ABI32 ) +#if defined(TARGET_PPC64 )abi_ulong st_nlink;unsigned int st_mode;#else @@ -1628,12 +1628,12 @@ struct target_stat {abi_ulong target_st_ctime_nsec;abi_ulong __unused4;abi_ulong __unused5; -#if defined(TARGET_PPC64 ) && !defined(TARGET_ABI32 ) +#if defined(TARGET_PPC64 )abi_ulong __unused6;#endif }; -#if !defined(TARGET_PPC64 ) || defined(TARGET_ABI32 ) +#if !defined(TARGET_PPC64 )#define TARGET_HAS_STRUCT_STAT64 struct QEMU_PACKED target_stat64 {unsigned long long st_dev;tests/docker/dockerfiles/debian-ppc64el-cross.docker +1
-1@@ -16,7 +16,7 @@ RUN apt update && \ # Specify the cross prefix for this image (see tests/docker/common.rc) ENV QEMU_CONFIGURE_OPTS --cross-prefix=powerpc64le-linux-gnu- -ENV DEF_TARGET_LIST ppc64-softmmu,ppc64-linux-user,ppc64abi32-linux-user +ENV DEF_TARGET_LIST ppc64-softmmu,ppc64-linux-user # Install extra libraries to increase code coverage RUN apt update && \tests/tcg/configure.sh +1
-1@@ -165,7 +165,7 @@ for target in $target_list; do container_image=debian-nios2-cross container_cross_cc=nios2-linux-gnu-gcc ;; - ppc-*|ppc64abi32-*) + ppc-*) container_hosts=x86_64 container_image=debian-powerpc-test-cross container_cross_cc=powerpc-linux-gnu-gcc-10
Laurent Vivier
AppliedLe 15/12/2021 à 09:49, Thomas Huth a écrit :
Quoted 21 lines
It's likely broken, and nobody cared for picking it up again during the deprecation phase, so let's remove this now.
Since this is the last entry in
deprecated_targets_list, remove the related code in the configure script, too.Signed-off-by Thomas Huth <[email protected]>--- .gitlab-ci.d/buildtest.yml | 27 ----------------- configs/targets/ppc64abi32-linux-user.mak | 8 ----- configure | 29 +------------------ docs/about/deprecated.rst | 7 ----- docs/about/removed-features.rst | 8 +++++ docs/user/main.rst | 1 - linux-user/elfload.c | 4 +-- linux-user/ppc/signal.c | 11 ++----- linux-user/ppc/target_syscall.h | 4 +-- linux-user/syscall_defs.h | 6 ++-- .../dockerfiles/debian-ppc64el-cross.docker | 2 +- tests/tcg/configure.sh | 2 +- 12 files changed, 21 insertions(+), 88 deletions(-)
Quoted 2 lines
delete mode 100644 configs/targets/ppc64abi32-linux-user.mak
Applied to my linux-user-for-7.0 branch.
Thanks,
Laurent
Le 20/12/2021 à 17:01, Laurent Vivier a écrit :
Quoted 25 lines
Le 15/12/2021 à 09:49, Thomas Huth a écrit :
Quoted 20 lines
It's likely broken, and nobody cared for picking it up again during the deprecation phase, so let's remove this now.
Since this is the last entry in
deprecated_targets_list, remove the related code in the configure script, too.Signed-off-by Thomas Huth <[email protected]>---
.gitlab-ci.d/buildtest.yml | 27 ----------------- configs/targets/ppc64abi32-linux-user.mak | 8 ----- configure | 29 +------------------ docs/about/deprecated.rst | 7 ----- docs/about/removed-features.rst | 8 +++++ docs/user/main.rst | 1 - linux-user/elfload.c | 4 +-- linux-user/ppc/signal.c | 11 ++----- linux-user/ppc/target_syscall.h | 4 +-- linux-user/syscall_defs.h | 6 ++-- .../dockerfiles/debian-ppc64el-cross.docker | 2 +- tests/tcg/configure.sh | 2 +-Quoted 3 lines
12 files changed, 21 insertions(+), 88 deletions(-)delete mode 100644 configs/targets/ppc64abi32-linux-user.mak
Quoted 1 line
Applied to my linux-user-for-7.0 branch.
I've removed the patch from my series as Alex has added it to his testing/next branch. As it modifies the gitlab CI and the dockerfiles, I think it better fits in his branch.
Thanks,
Laurent
Quoted 2 lines · Laurent Vivier
Le 20/12/2021 à 17:01, Laurent Vivier a écrit :
Quoted 1 line
Le 15/12/2021 à 09:49, Thomas Huth a écrit :
<snip>
Quoted 6 lines
Quoted 2 lines
Quoted 1 line
Applied to my linux-user-for-7.0 branch.
I've removed the patch from my series as Alex has added it to his testing/next branch. As it modifies the gitlab CI and the dockerfiles, I think it better
fits in his branch.
Sorry I missed you'd already queued it - but ACK it will come through my tree ;-)
Signature · 1 line
Alex Bennée
Quoted 7 lines · Thomas Huth
It's likely broken, and nobody cared for picking it up again during the deprecation phase, so let's remove this now.
Since this is the last entry in
deprecated_targets_list, remove the related code in the configure script, too.Signed-off-by Thomas Huth <[email protected]>
Queued to testing/next, thanks.
Signature · 1 line
Alex Bennée