Remove deprecated target tilegx
PATCH 1/1 Remove deprecated target tilegx
TILE-Gx was only implemented in linux-user mode, but support for this CPU was removed from 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, users can simply use older versions of QEMU.
--- .gitlab-ci.yml | 3 +- configure | 2 +- default-configs/targets/tilegx-linux-user.mak | 1 - docs/system/deprecated.rst | 8 - docs/system/removed-features.rst | 14 + include/elf.h | 2 - include/exec/poison.h | 1 - linux-user/elfload.c | 23 - linux-user/syscall_defs.h | 10 +- linux-user/tilegx/cpu_loop.c | 287 -- linux-user/tilegx/signal.c | 178 -- linux-user/tilegx/sockbits.h | 1 - linux-user/tilegx/syscall_nr.h | 327 --- linux-user/tilegx/target_cpu.h | 44 - linux-user/tilegx/target_elf.h | 14 - linux-user/tilegx/target_fcntl.h | 11 - linux-user/tilegx/target_signal.h | 23 - linux-user/tilegx/target_structs.h | 46 - linux-user/tilegx/target_syscall.h | 44 - linux-user/tilegx/termbits.h | 1 - target/meson.build | 1 - target/tilegx/cpu-param.h | 17 - target/tilegx/cpu.c | 182 -- target/tilegx/cpu.h | 160 -- target/tilegx/helper.c | 147 - target/tilegx/helper.h | 23 - target/tilegx/meson.build | 13 - target/tilegx/opcode_tilegx.h | 1406 ---------- target/tilegx/simd_helper.c | 165 -- target/tilegx/spr_def_64.h | 212 -- target/tilegx/translate.c | 2437 ----------------- 31 files changed, 18 insertions(+), 5785 deletions(-) delete mode 100644 default-configs/targets/tilegx-linux-user.mak delete mode 100644 linux-user/tilegx/cpu_loop.c delete mode 100644 linux-user/tilegx/signal.c delete mode 100644 linux-user/tilegx/sockbits.h delete mode 100644 linux-user/tilegx/syscall_nr.h delete mode 100644 linux-user/tilegx/target_cpu.h delete mode 100644 linux-user/tilegx/target_elf.h delete mode 100644 linux-user/tilegx/target_fcntl.h delete mode 100644 linux-user/tilegx/target_signal.h delete mode 100644 linux-user/tilegx/target_structs.h delete mode 100644 linux-user/tilegx/target_syscall.h delete mode 100644 linux-user/tilegx/termbits.h delete mode 100644 target/tilegx/cpu-param.h delete mode 100644 target/tilegx/cpu.c delete mode 100644 target/tilegx/cpu.h delete mode 100644 target/tilegx/helper.c delete mode 100644 target/tilegx/helper.h delete mode 100644 target/tilegx/meson.build delete mode 100644 target/tilegx/opcode_tilegx.h delete mode 100644 target/tilegx/simd_helper.c delete mode 100644 target/tilegx/spr_def_64.h delete mode 100644 target/tilegx/translate.c
.gitlab-ci.yml +1 -2
@@ -497,8 +497,7 @@ build-deprecated: IMAGE: debian-all-test-cross CONFIGURE_ARGS: --disable-docs --disable-tools MAKE_CHECK_ARGS: build-tcg - TARGETS: ppc64abi32-linux-user tilegx-linux-user lm32-softmmu - unicore32-softmmu + TARGETS: ppc64abi32-linux-user lm32-softmmu unicore32-softmmu artifacts: expire_in: 2 days paths:
configure +1 -1
@@ -1657,7 +1657,7 @@ if [ "$ARCH" = "unknown" ]; then fi default_target_list="" -deprecated_targets_list=ppc64abi32-linux-user,tilegx-linux-user,lm32-softmmu,unicore32-softmmu +deprecated_targets_list=ppc64abi32-linux-user,lm32-softmmu,unicore32-softmmu deprecated_features="" mak_wilds=""
default-configs/targets/tilegx-linux-user.mak deleted +0 -1
@@ -1 +0,0 @@ -TARGET_ARCH=tilegx
docs/system/deprecated.rst +0 -8
@@ -382,14 +382,6 @@ it out of sheepdog volumes into an alternative storage backend. linux-user mode CPUs -------------------- -``tilegx`` CPUs (since 5.1.0) -''''''''''''''''''''''''''''' - -The ``tilegx`` guest CPU support (which was only implemented in -linux-user mode) is deprecated and will be removed in a future version -of QEMU. Support for this CPU was removed from the upstream Linux -kernel in 2018, and has also been dropped from glibc. - ``ppc64abi32`` CPUs (since 5.2.0) '''''''''''''''''''''''''''''''''
docs/system/removed-features.rst +14 -0
@@ -142,6 +142,20 @@ This machine has been renamed ``fuloong2e``. These machine types were very old and likely could not be used for live migration from old QEMU versions anymore. Use a newer machine type instead. + +linux-user mode CPUs +-------------------- + +``tilegx`` CPUs (removed in 6.0) +'''''''''''''''''''''''''''''''' + +The ``tilegx`` guest CPU support has been removed without replacement. It was +only implemented in linux-user mode, but support for this CPU was removed from +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. + + Related binaries ----------------
include/elf.h +0 -2
@@ -206,8 +206,6 @@ typedef struct mips_elf_abiflags_v0 {#define EM_AARCH64 183 -#define EM_TILEGX 191/* TILE-Gx */ -#define EM_MOXIE 223/* Moxie processor family */ #define EM_MOXIE_OLD 0xFEED
include/exec/poison.h +0 -1
@@ -30,7 +30,6 @@#pragma GCC poison TARGET_SH4#pragma GCC poison TARGET_SPARC#pragma GCC poison TARGET_SPARC64 -#pragma GCC poison TARGET_TILEGX#pragma GCC poison TARGET_TRICORE#pragma GCC poison TARGET_UNICORE32#pragma GCC poison TARGET_XTENSA
linux-user/elfload.c +0 -23
@@ -1387,29 +1387,6 @@ static inline void init_thread(struct target_pt_regs *regs, struct image_info *i#endif /* TARGET_S390X */ -#ifdef TARGET_TILEGX - -/* 42 bits real used address, a half for user mode */ -#define ELF_START_MMAP (0x00000020000000000ULL) - -#define elf_check_arch (x) ((x) == EM_TILEGX) - -#define ELF_CLASS ELFCLASS64 -#define ELF_DATA ELFDATA2LSB -#define ELF_ARCH EM_TILEGX - -static inline void init_thread (struct target_pt_regs *regs, -struct image_info *infop) -{ - regs->pc = infop->entry; - regs->sp = infop->start_stack; - -} - -#define ELF_EXEC_PAGESIZE 65536/* TILE-Gx page size is 64KB */ - -#endif /* TARGET_TILEGX */ -#ifdef TARGET_RISCV #define ELF_START_MMAP 0x80000000
linux-user/syscall_defs.h +2 -8
@@ -72,8 +72,7 @@#if defined(TARGET_I386 ) || defined(TARGET_ARM ) || defined(TARGET_SH4 ) \ || defined(TARGET_M68K ) || defined(TARGET_CRIS ) \ - || defined(TARGET_S390X ) \ - || defined(TARGET_OPENRISC ) || defined(TARGET_TILEGX ) \ + || defined(TARGET_S390X ) || defined(TARGET_OPENRISC ) \ || defined(TARGET_NIOS2 ) || defined(TARGET_RISCV ) \ || defined(TARGET_XTENSA )
@@ -691,10 +690,6 @@ typedef struct target_siginfo {#define TARGET_ILL_PRVREG (6)/* privileged register */ #define TARGET_ILL_COPROC (7)/* coprocessor error */ #define TARGET_ILL_BADSTK (8)/* internal stack error */ -#ifdef TARGET_TILEGX -#define TARGET_ILL_DBLFLT (9)/* double fault */ -#define TARGET_ILL_HARDWALL (10)/* user networks hardwall violation */ -#endif /* * SIGFPE si_codes
@@ -2149,8 +2144,7 @@ struct target_stat64 { abi_ulong __unused5; }; -#elif defined(TARGET_OPENRISC) || defined(TARGET_TILEGX) || \ - defined(TARGET_NIOS2) || defined(TARGET_RISCV) +#elif defined(TARGET_OPENRISC) || defined(TARGET_NIOS2) || defined(TARGET_RISCV)/* These are the asm-generic versions of the stat and stat64 structures */
linux-user/tilegx/cpu_loop.c deleted +0 -287
287 lines not on this page · raw message
linux-user/tilegx/signal.c deleted +0 -178
178 lines not on this page · raw message
linux-user/tilegx/sockbits.h deleted +0 -1
@@ -1 +0,0 @@ -#include "../generic/sockbits.h"
linux-user/tilegx/syscall_nr.h deleted +0 -327
327 lines not on this page · raw message
linux-user/tilegx/target_cpu.h deleted +0 -44
44 lines not on this page · raw message
linux-user/tilegx/target_elf.h deleted +0 -14
@@ -1,14 +0,0 @@ -/* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License version 2 as -* published by the Free Software Foundation, or (at your option) any -* later version. See the COPYING file in the top-level directory. -*/ - -#ifndef TILEGX_TARGET_ELF_H -#define TILEGX_TARGET_ELF_H -static inline const char *cpu_get_model (uint32_t eflags) -{ -return "any" ; -} -#endif
linux-user/tilegx/target_fcntl.h deleted +0 -11
@@ -1,11 +0,0 @@ -/* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License version 2 as -* published by the Free Software Foundation, or (at your option) any -* later version. See the COPYING file in the top-level directory. -*/ - -#ifndef TILEGX_TARGET_FCNTL_H -#define TILEGX_TARGET_FCNTL_H -#include "../generic/fcntl.h" -#endif
linux-user/tilegx/target_signal.h deleted +0 -23
@@ -1,23 +0,0 @@ -#ifndef TILEGX_TARGET_SIGNAL_H -#define TILEGX_TARGET_SIGNAL_H - -/* this struct defines a stack used during syscall handling */ - -typedef struct target_sigaltstack { -abi_ulong ss_sp; -abi_int ss_flags; -abi_ulong ss_size; -}target_stack_t ; - -/* -* sigaltstack controls -*/ -#define TARGET_SS_ONSTACK 1 -#define TARGET_SS_DISABLE 2 - -#define TARGET_MINSIGSTKSZ 2048 -#define TARGET_SIGSTKSZ 8192 - -#include "../generic/signal.h" - -#endif /* TILEGX_TARGET_SIGNAL_H */
linux-user/tilegx/target_structs.h deleted +0 -46
46 lines not on this page · raw message
linux-user/tilegx/target_syscall.h deleted +0 -44
44 lines not on this page · raw message
linux-user/tilegx/termbits.h deleted +0 -1
@@ -1 +0,0 @@ -#include "../generic/termbits.h"
target/meson.build +0 -1
@@ -18,7 +18,6 @@ subdir('rx') subdir('s390x') subdir('sh4') subdir('sparc') -subdir('tilegx') subdir('tricore') subdir('unicore32') subdir('xtensa')
target/tilegx/cpu-param.h deleted +0 -17
@@ -1,17 +0,0 @@ -/* -* TILE-Gx cpu parameters for qemu. -* -* Copyright (c) 2015 Chen Gang -* SPDX-License-Identifier: LGPL-2.0+ -*/ - -#ifndef TILEGX_CPU_PARAM_H -#define TILEGX_CPU_PARAM_H 1 - -#define TARGET_LONG_BITS 64 -#define TARGET_PAGE_BITS 16/* TILE-Gx uses 64KB page size */ -#define TARGET_PHYS_ADDR_SPACE_BITS 42 -#define TARGET_VIRT_ADDR_SPACE_BITS 64 -#define NB_MMU_MODES 1 - -#endif
target/tilegx/cpu.c deleted +0 -182
182 lines not on this page · raw message
target/tilegx/cpu.h deleted +0 -160
160 lines not on this page · raw message
target/tilegx/helper.c deleted +0 -147
147 lines not on this page · raw message
target/tilegx/helper.h deleted +0 -23
@@ -1,23 +0,0 @@ -DEF_HELPER_2(exception, noreturn, env, i32) -DEF_HELPER_1(ext01_ics, void, env) -DEF_HELPER_FLAGS_1(revbits, TCG_CALL_NO_RWG_SE, i64, i64) -DEF_HELPER_FLAGS_3(shufflebytes, TCG_CALL_NO_RWG_SE, i64, i64, i64, i64) -DEF_HELPER_FLAGS_2(crc32_8, TCG_CALL_NO_RWG_SE, i64, i64, i64) -DEF_HELPER_FLAGS_2(crc32_32, TCG_CALL_NO_RWG_SE, i64, i64, i64) -DEF_HELPER_FLAGS_3(cmula, TCG_CALL_NO_RWG_SE, i64, i64, i64, i64) -DEF_HELPER_FLAGS_3(cmulaf, TCG_CALL_NO_RWG_SE, i64, i64, i64, i64) -DEF_HELPER_FLAGS_4(cmul2, TCG_CALL_NO_RWG_SE, i64, i64, i64, int, int) - -DEF_HELPER_FLAGS_2(v1int_h, TCG_CALL_NO_RWG_SE, i64, i64, i64) -DEF_HELPER_FLAGS_2(v1int_l, TCG_CALL_NO_RWG_SE, i64, i64, i64) -DEF_HELPER_FLAGS_2(v2int_h, TCG_CALL_NO_RWG_SE, i64, i64, i64) -DEF_HELPER_FLAGS_2(v2int_l, TCG_CALL_NO_RWG_SE, i64, i64, i64) - -DEF_HELPER_FLAGS_2(v1multu, TCG_CALL_NO_RWG_SE, i64, i64, i64) -DEF_HELPER_FLAGS_2(v2mults, TCG_CALL_NO_RWG_SE, i64, i64, i64) -DEF_HELPER_FLAGS_2(v1shl, TCG_CALL_NO_RWG_SE, i64, i64, i64) -DEF_HELPER_FLAGS_2(v1shru, TCG_CALL_NO_RWG_SE, i64, i64, i64) -DEF_HELPER_FLAGS_2(v1shrs, TCG_CALL_NO_RWG_SE, i64, i64, i64) -DEF_HELPER_FLAGS_2(v2shl, TCG_CALL_NO_RWG_SE, i64, i64, i64) -DEF_HELPER_FLAGS_2(v2shru, TCG_CALL_NO_RWG_SE, i64, i64, i64) -DEF_HELPER_FLAGS_2 (v2shrs,TCG_CALL_NO_RWG_SE , i64, i64, i64)
target/tilegx/meson.build deleted +0 -13
@@ -1,13 +0,0 @@ -tilegx_ss = ss.source_set() -tilegx_ss.add(files( - 'cpu.c', - 'helper.c', - 'simd_helper.c', - 'translate.c', -)) -tilegx_ss.add(zlib) - -tilegx_softmmu_ss = ss.source_set() - -target_arch += {'tilegx': tilegx_ss} -target_softmmu_arch += {'tilegx': tilegx_softmmu_ss}
target/tilegx/opcode_tilegx.h deleted +0 -1406
1,351 lines not on this page · raw message
target/tilegx/simd_helper.c deleted +0 -165
165 lines not on this page · raw message
target/tilegx/spr_def_64.h deleted +0 -212
212 lines not on this page · raw message
target/tilegx/translate.c deleted +0 -2437
2,437 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.27.0
Part of the diff is not shown here. View the raw message.
Quoted 8 lines · Thomas Huth
TILE-Gx was only implemented in linux-user mode, but support for this CPU was removed from 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, users can simply use older versions of QEMU.
Signed-off-by Thomas Huth <[email protected]>---
r~
Quoted 7 lines · Thomas Huth
TILE-Gx was only implemented in linux-user mode, but support for this CPU was removed from 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, users can simply use older versions of QEMU.
Signed-off-by Thomas Huth <[email protected]>
Signature · 1 line
Alex Bennée
Le 24/02/2021 à 19:39, Thomas Huth a écrit :
Quoted 54 lines
TILE-Gx was only implemented in linux-user mode, but support for this CPU was removed from 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, users can simply use older versions of QEMU.
Signed-off-by Thomas Huth <[email protected]>--- .gitlab-ci.yml | 3 +- configure | 2 +- default-configs/targets/tilegx-linux-user.mak | 1 - docs/system/deprecated.rst | 8 - docs/system/removed-features.rst | 14 + include/elf.h | 2 - include/exec/poison.h | 1 - linux-user/elfload.c | 23 - linux-user/syscall_defs.h | 10 +- linux-user/tilegx/cpu_loop.c | 287 -- linux-user/tilegx/signal.c | 178 -- linux-user/tilegx/sockbits.h | 1 - linux-user/tilegx/syscall_nr.h | 327 --- linux-user/tilegx/target_cpu.h | 44 - linux-user/tilegx/target_elf.h | 14 - linux-user/tilegx/target_fcntl.h | 11 - linux-user/tilegx/target_signal.h | 23 - linux-user/tilegx/target_structs.h | 46 - linux-user/tilegx/target_syscall.h | 44 - linux-user/tilegx/termbits.h | 1 - target/meson.build | 1 - target/tilegx/cpu-param.h | 17 - target/tilegx/cpu.c | 182 -- target/tilegx/cpu.h | 160 -- target/tilegx/helper.c | 147 - target/tilegx/helper.h | 23 - target/tilegx/meson.build | 13 - target/tilegx/opcode_tilegx.h | 1406 ---------- target/tilegx/simd_helper.c | 165 -- target/tilegx/spr_def_64.h | 212 -- target/tilegx/translate.c | 2437 ----------------- 31 files changed, 18 insertions(+), 5785 deletions(-) delete mode 100644 default-configs/targets/tilegx-linux-user.mak delete mode 100644 linux-user/tilegx/cpu_loop.c delete mode 100644 linux-user/tilegx/signal.c delete mode 100644 linux-user/tilegx/sockbits.h delete mode 100644 linux-user/tilegx/syscall_nr.h delete mode 100644 linux-user/tilegx/target_cpu.h delete mode 100644 linux-user/tilegx/target_elf.h delete mode 100644 linux-user/tilegx/target_fcntl.h delete mode 100644 linux-user/tilegx/target_signal.h delete mode 100644 linux-user/tilegx/target_structs.h delete mode 100644 linux-user/tilegx/target_syscall.h delete mode 100644 linux-user/tilegx/termbits.h delete mode 100644 target/tilegx/cpu-param.h delete mode 100644 target/tilegx/cpu.c
Quoted 9 lines
delete mode 100644 target/tilegx/cpu.h delete mode 100644 target/tilegx/helper.c delete mode 100644 target/tilegx/helper.h delete mode 100644 target/tilegx/meson.build delete mode 100644 target/tilegx/opcode_tilegx.h delete mode 100644 target/tilegx/simd_helper.c delete mode 100644 target/tilegx/spr_def_64.h delete mode 100644 target/tilegx/translate.c