Remove the deprecated moxie target
PATCH 1/1 Remove the deprecated moxie target
There are no known users of this CPU anymore, and there are no binaries available online which could be used for regression tests, so the code has likely completly bit-rotten already. It's been marked as deprecated since two releases now and nobody spoke up that there is still a need to keep it, thus let's remov it now.
--- .gitlab-ci.yml | 6 +- MAINTAINERS | 8 - default-configs/devices/moxie-softmmu.mak | 5 - default-configs/targets/moxie-softmmu.mak | 2 - disas/meson.build | 1 - disas/moxie.c | 360 --------- docs/system/deprecated.rst | 8 - docs/system/removed-features.rst | 7 + fpu/softfloat-specialize.c.inc | 2 +- hw/Kconfig | 1 - hw/meson.build | 1 - hw/moxie/Kconfig | 3 - hw/moxie/meson.build | 4 - hw/moxie/moxiesim.c | 157 ---- include/disas/dis-asm.h | 1 - include/elf.h | 3 - include/exec/poison.h | 2 - include/hw/elf_ops.h | 8 - include/sysemu/arch_init.h | 1 - meson.build | 1 - qapi/machine.json | 2 +- qapi/misc-target.json | 2 +- softmmu/arch_init.c | 2 - target/meson.build | 1 - target/moxie/cpu-param.h | 17 - target/moxie/cpu.c | 161 ---- target/moxie/cpu.h | 123 --- target/moxie/helper.c | 120 --- target/moxie/helper.h | 5 - target/moxie/machine.c | 19 - target/moxie/machine.h | 1 - target/moxie/meson.build | 14 - target/moxie/mmu.c | 32 - target/moxie/mmu.h | 19 - target/moxie/translate.c | 892 ---------------------- tests/qtest/boot-serial-test.c | 8 - tests/qtest/machine-none-test.c | 1 - tests/qtest/meson.build | 2 - 38 files changed, 13 insertions(+), 1989 deletions(-) delete mode 100644 default-configs/devices/moxie-softmmu.mak delete mode 100644 default-configs/targets/moxie-softmmu.mak delete mode 100644 disas/moxie.c delete mode 100644 hw/moxie/Kconfig delete mode 100644 hw/moxie/meson.build delete mode 100644 hw/moxie/moxiesim.c delete mode 100644 target/moxie/cpu-param.h delete mode 100644 target/moxie/cpu.c delete mode 100644 target/moxie/cpu.h delete mode 100644 target/moxie/helper.c delete mode 100644 target/moxie/helper.h delete mode 100644 target/moxie/machine.c delete mode 100644 target/moxie/machine.h delete mode 100644 target/moxie/meson.build delete mode 100644 target/moxie/mmu.c delete mode 100644 target/moxie/mmu.h delete mode 100644 target/moxie/translate.c
.gitlab-ci.yml +3 -3
@@ -85,7 +85,7 @@ build-system-alpine: variables: IMAGE: alpine TARGETS: aarch64-softmmu alpha-softmmu cris-softmmu hppa-softmmu - moxie-softmmu microblazeel-softmmu mips64el-softmmu + microblazeel-softmmu mips64el-softmmu MAKE_CHECK_ARGS: check-build CONFIGURE_ARGS: --enable-docs --enable-trace-backends=log,simple,syslog artifacts:
@@ -121,7 +121,7 @@ build-system-ubuntu: IMAGE: ubuntu2004 CONFIGURE_ARGS: --enable-docs --enable-fdt=system --enable-slirp=system TARGETS: aarch64-softmmu alpha-softmmu cris-softmmu hppa-softmmu - moxie-softmmu microblazeel-softmmu mips64el-softmmu + microblazeel-softmmu mips64el-softmmu MAKE_CHECK_ARGS: check-build artifacts: expire_in: 2 days
@@ -680,7 +680,7 @@ build-tci: variables: IMAGE: debian-all-test-cross script: - - TARGETS="aarch64 alpha arm hppa m68k microblaze moxie ppc64 s390x x86_64" + - TARGETS="aarch64 alpha arm hppa m68k microblaze ppc64 s390x x86_64" - mkdir build - cd build - ../configure --enable-tcg-interpreter
MAINTAINERS +0 -8
@@ -258,14 +258,6 @@ MIPS TCG CPUs (nanoMIPS ISA) S: Orphan F: disas/nanomips.* -Moxie TCG CPUs -M: Anthony Green <[email protected]> -S: Maintained -F: target/moxie/ -F: disas/moxie.c -F: hw/moxie/ -F: default-configs/*/moxie-softmmu.mak - NiosII TCG CPUs M: Chris Wulff <[email protected]> M: Marek Vasut <[email protected]>
default-configs/devices/moxie-softmmu.mak deleted +0 -5
@@ -1,5 +0,0 @@ -# Default configuration for moxie-softmmu - -# Boards: -# -CONFIG_MOXIESIM=y
default-configs/targets/moxie-softmmu.mak deleted +0 -2
@@ -1,2 +0,0 @@ -TARGET_ARCH=moxie -TARGET_WORDS_BIGENDIAN=y
disas/meson.build +0 -1
@@ -13,7 +13,6 @@ common_ss.add(when: 'CONFIG_LM32_DIS', if_true: files('lm32.c')) common_ss.add(when: 'CONFIG_M68K_DIS', if_true: files('m68k.c')) common_ss.add(when: 'CONFIG_MICROBLAZE_DIS', if_true: files('microblaze.c')) common_ss.add(when: 'CONFIG_MIPS_DIS', if_true: files('mips.c')) -common_ss.add(when: 'CONFIG_MOXIE_DIS', if_true: files('moxie.c')) common_ss.add(when: 'CONFIG_NANOMIPS_DIS', if_true: files('nanomips.cpp')) common_ss.add(when: 'CONFIG_NIOS2_DIS', if_true: files('nios2.c')) common_ss.add(when: 'CONFIG_PPC_DIS', if_true: files('ppc.c'))
disas/moxie.c deleted +0 -360
360 lines not on this page · raw message
docs/system/deprecated.rst +0 -8
@@ -198,14 +198,6 @@ from Linux upstream kernel, declare it deprecated. System emulator CPUS -------------------- -``moxie`` CPU (since 5.2.0) -''''''''''''''''''''''''''' - -The ``moxie`` guest CPU support is deprecated and will be removed in -a future version of QEMU. It's unclear whether anybody is still using -CPU emulation in QEMU, and there are no test images available to make -sure that the code is still working. - ``lm32`` CPUs (since 5.2.0) '''''''''''''''''''''''''''
docs/system/removed-features.rst +7 -0
@@ -285,6 +285,13 @@ The RISC-V no MMU cpus have been removed. The two CPUs: ``rv32imacu-nommu`` and ``rv64imacu-nommu`` can no longer be used. Instead the MMU status can be specified via the CPU ``mmu`` option when using the ``rv32`` or ``rv64`` CPUs. +``moxie`` CPU (removed in 6.1) +'''''''''''''''''''''''''''''' + +Nobody was using this CPU emulation in QEMU, and there were no test images +available to make sure that the code is still working, so it has been removed +without replacement. + System emulator machines ------------------------
fpu/softfloat-specialize.c.inc +1 -1
@@ -149,7 +149,7 @@ static FloatParts parts_default_nan(float_status *status) /* This case is true for Alpha, ARM, MIPS, OpenRISC, PPC, RISC-V, * S390, SH4, TriCore, and Xtensa. I cannot find documentation * for Unicore32; the choice from the original commit is unchanged. - * Our other supported targets, CRIS, LM32, Moxie, Nios2, and Tile, + * Our other supported targets, CRIS, LM32, and Nios2, * do not have floating-point. */ if (snan_bit_is_one(status)) {
hw/Kconfig +0 -1
@@ -51,7 +51,6 @@ source lm32/Kconfig source m68k/Kconfig source microblaze/Kconfig source mips/Kconfig -source moxie/Kconfig source nios2/Kconfig source openrisc/Kconfig source ppc/Kconfig
hw/meson.build +0 -1
@@ -51,7 +51,6 @@ subdir('lm32') subdir('m68k') subdir('microblaze') subdir('mips') -subdir('moxie') subdir('nios2') subdir('openrisc') subdir('ppc')
hw/moxie/Kconfig deleted +0 -3
@@ -1,3 +0,0 @@ -config MOXIESIM - bool - select SERIAL
hw/moxie/meson.build deleted +0 -4
@@ -1,4 +0,0 @@ -moxie_ss = ss.source_set() -moxie_ss.add(when: 'CONFIG_MOXIESIM', if_true: files('moxiesim.c')) - -hw_arch += {'moxie': moxie_ss}
hw/moxie/moxiesim.c deleted +0 -157
157 lines not on this page · raw message
include/disas/dis-asm.h +0 -1
@@ -437,7 +437,6 @@ int print_insn_m32r (bfd_vma, disassemble_info*);int print_insn_m88k (bfd_vma ,disassemble_info *);int print_insn_mn10200 (bfd_vma ,disassemble_info *);int print_insn_mn10300 (bfd_vma ,disassemble_info *); -int print_insn_moxie (bfd_vma ,disassemble_info *);int print_insn_ns32k (bfd_vma ,disassemble_info *);int print_insn_big_powerpc (bfd_vma ,disassemble_info *);int print_insn_little_powerpc (bfd_vma ,disassemble_info *);
include/elf.h +0 -3
@@ -206,9 +206,6 @@ typedef struct mips_elf_abiflags_v0 {#define EM_AARCH64 183 -#define EM_MOXIE 223/* Moxie processor family */ -#define EM_MOXIE_OLD 0xFEED -#define EF_AVR_MACH 0x7F/* Mask for AVR e_flags to get core type */ /* This is the info that is needed to parse the dynamic section of the file */
include/exec/poison.h +0 -2
@@ -20,7 +20,6 @@#pragma GCC poison TARGET_ABI_MIPSO32#pragma GCC poison TARGET_MIPS64#pragma GCC poison TARGET_ABI_MIPSN64 -#pragma GCC poison TARGET_MOXIE#pragma GCC poison TARGET_NIOS2#pragma GCC poison TARGET_OPENRISC#pragma GCC poison TARGET_PPC
@@ -79,7 +78,6 @@#pragma GCC poison CONFIG_MICROBLAZE_DIS#pragma GCC poison CONFIG_MIPS_DIS#pragma GCC poison CONFIG_NANOMIPS_DIS -#pragma GCC poison CONFIG_MOXIE_DIS#pragma GCC poison CONFIG_NIOS2_DIS#pragma GCC poison CONFIG_PPC_DIS#pragma GCC poison CONFIG_RISCV_DIS
include/hw/elf_ops.h +0 -8
@@ -368,14 +368,6 @@ static int glue(load_elf, SZ)(const char *name, int fd, } }break ; -case EM_MOXIE : -if (ehdr.e_machine !=EM_MOXIE ) { -if (ehdr.e_machine !=EM_MOXIE_OLD ) { - ret =ELF_LOAD_WRONG_ARCH ; - goto fail; - } - } -break ;case EM_MIPS :case EM_NANOMIPS : if ((ehdr.e_machine != EM_MIPS) &&
include/sysemu/arch_init.h +0 -1
@@ -19,7 +19,6 @@ enum {QEMU_ARCH_XTENSA = (1 <<12 ),QEMU_ARCH_OPENRISC = (1 <<13 ),QEMU_ARCH_UNICORE32 = (1 <<14 ), -QEMU_ARCH_MOXIE = (1 <<15 ),QEMU_ARCH_TRICORE = (1 <<16 ),QEMU_ARCH_NIOS2 = (1 <<17 ), QEMU_ARCH_HPPA = (1 << 18),
meson.build +0 -1
@@ -1202,7 +1202,6 @@ disassemblers = { 'm68k' : ['CONFIG_M68K_DIS'], 'microblaze' : ['CONFIG_MICROBLAZE_DIS'], 'mips' : ['CONFIG_MIPS_DIS'], - 'moxie' : ['CONFIG_MOXIE_DIS'], 'nios2' : ['CONFIG_NIOS2_DIS'], 'or1k' : ['CONFIG_OPENRISC_DIS'], 'ppc' : ['CONFIG_PPC_DIS'],
qapi/machine.json +1 -1
@@ -31,7 +31,7 @@ { 'enum' : 'SysEmuTarget', 'data' : [ 'aarch64', 'alpha', 'arm', 'avr', 'cris', 'hppa', 'i386', 'lm32', 'm68k', 'microblaze', 'microblazeel', 'mips', 'mips64', - 'mips64el', 'mipsel', 'moxie', 'nios2', 'or1k', 'ppc', + 'mips64el', 'mipsel', 'nios2', 'or1k', 'ppc', 'ppc64', 'riscv32', 'riscv64', 'rx', 's390x', 'sh4', 'sh4eb', 'sparc', 'sparc64', 'tricore', 'unicore32', 'x86_64', 'xtensa', 'xtensaeb' ] }
qapi/misc-target.json +1 -1
@@ -23,7 +23,7 @@ ## { 'event': 'RTC_CHANGE', 'data': { 'offset': 'int' }, - 'if': 'defined(TARGET_ALPHA) || defined(TARGET_ARM) || defined(TARGET_HPPA) || defined(TARGET_I386) || defined(TARGET_MIPS) || defined(TARGET_MIPS64) || defined(TARGET_MOXIE) || defined(TARGET_PPC) || defined(TARGET_PPC64) || defined(TARGET_S390X) || defined(TARGET_SH4) || defined(TARGET_SPARC)' } + 'if': 'defined(TARGET_ALPHA) || defined(TARGET_ARM) || defined(TARGET_HPPA) || defined(TARGET_I386) || defined(TARGET_MIPS) || defined(TARGET_MIPS64) || defined(TARGET_PPC) || defined(TARGET_PPC64) || defined(TARGET_S390X) || defined(TARGET_SH4) || defined(TARGET_SPARC)' } ## # @rtc-reset-reinjection:
softmmu/arch_init.c +0 -2
@@ -66,8 +66,6 @@ int graphic_depth = 32;#define QEMU_ARCH QEMU_ARCH_MICROBLAZE#elif defined(TARGET_MIPS )#define QEMU_ARCH QEMU_ARCH_MIPS -#elif defined(TARGET_MOXIE ) -#define QEMU_ARCH QEMU_ARCH_MOXIE#elif defined(TARGET_NIOS2 )#define QEMU_ARCH QEMU_ARCH_NIOS2#elif defined(TARGET_OPENRISC )
target/meson.build +0 -1
@@ -9,7 +9,6 @@ subdir('lm32') subdir('m68k') subdir('microblaze') subdir('mips') -subdir('moxie') subdir('nios2') subdir('openrisc') subdir('ppc')
target/moxie/cpu-param.h deleted +0 -17
@@ -1,17 +0,0 @@ -/* -* Moxie cpu parameters for qemu. -* -* Copyright (c) 2008, 2010, 2013 Anthony Green -* SPDX-License-Identifier: LGPL-2.1+ -*/ - -#ifndef MOXIE_CPU_PARAM_H -#define MOXIE_CPU_PARAM_H 1 - -#define TARGET_LONG_BITS 32 -#define TARGET_PAGE_BITS 12/* 4k */ -#define TARGET_PHYS_ADDR_SPACE_BITS 32 -#define TARGET_VIRT_ADDR_SPACE_BITS 32 -#define NB_MMU_MODES 1 - -#endif
target/moxie/cpu.c deleted +0 -161
161 lines not on this page · raw message
target/moxie/cpu.h deleted +0 -123
123 lines not on this page · raw message
target/moxie/helper.c deleted +0 -120
120 lines not on this page · raw message
target/moxie/helper.h deleted +0 -5
@@ -1,5 +0,0 @@ -DEF_HELPER_2(raise_exception, void, env, int) -DEF_HELPER_1(debug, void, env) - -DEF_HELPER_FLAGS_3(div, TCG_CALL_NO_WG, i32, env, i32, i32) -DEF_HELPER_FLAGS_3 (udiv,TCG_CALL_NO_WG , i32, env, i32, i32)
target/moxie/machine.c deleted +0 -19
@@ -1,19 +0,0 @@ -#include "qemu/osdep.h" -#include "cpu.h" -#include "machine.h" -#include "migration/cpu.h" - -const VMStateDescription vmstate_moxie_cpu = { - .name ="cpu" , - .version_id =1 , - .minimum_version_id =1 , - .fields = (VMStateField []) { -VMSTATE_UINT32 (flags, CPUMoxieState), -VMSTATE_UINT32_ARRAY (gregs, CPUMoxieState,16 ), -VMSTATE_UINT32_ARRAY (sregs, CPUMoxieState,256 ), -VMSTATE_UINT32 (pc, CPUMoxieState), -VMSTATE_UINT32 (cc_a, CPUMoxieState), -VMSTATE_UINT32 (cc_b, CPUMoxieState), -VMSTATE_END_OF_LIST () - } -};
target/moxie/machine.h deleted +0 -1
@@ -1 +0,0 @@ -extern const VMStateDescription vmstate_moxie_cpu;
target/moxie/meson.build deleted +0 -14
@@ -1,14 +0,0 @@ -moxie_ss = ss.source_set() -moxie_ss.add(files( - 'cpu.c', - 'helper.c', - 'machine.c', - 'machine.c', - 'translate.c', -)) - -moxie_softmmu_ss = ss.source_set() -moxie_softmmu_ss.add(files('mmu.c')) - -target_arch += {'moxie': moxie_ss} -target_softmmu_arch += {'moxie': moxie_softmmu_ss}
target/moxie/mmu.c deleted +0 -32
@@ -1,32 +0,0 @@ -/* -* Moxie mmu emulation. -* -* Copyright (c) 2008, 2013 Anthony Green -* -* This library is free software; you can redistribute it and/or -* modify it under the terms of the GNU Lesser General Public -* License as published by the Free Software Foundation; either -* version 2.1 of the License, or (at your option) any later version. -* -* This library is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* Lesser General Public License for more details. -* -* You should have received a copy of the GNU Lesser General Public License -* along with this program. If not, see <http://www.gnu.org/licenses/>. -*/ - -#include "qemu/osdep.h" - -#include "cpu.h" -#include "mmu.h" - -int moxie_mmu_translate (MoxieMMUResult *res, -CPUMoxieState *env,uint32_t vaddr, -int rw,int mmu_idx) -{ -/* Perform no translation yet. */ - res->phy = vaddr; -return 0 ; -}
target/moxie/mmu.h deleted +0 -19
@@ -1,19 +0,0 @@ -#ifndef TARGET_MOXIE_MMU_H -#define TARGET_MOXIE_MMU_H - -#define MOXIE_MMU_ERR_EXEC 0 -#define MOXIE_MMU_ERR_READ 1 -#define MOXIE_MMU_ERR_WRITE 2 -#define MOXIE_MMU_ERR_FLUSH 3 - -typedef struct { -uint32_t phy; -uint32_t pfn; -int cause_op; -}MoxieMMUResult ; - -int moxie_mmu_translate (MoxieMMUResult *res, -CPUMoxieState *env,uint32_t vaddr, -int rw,int mmu_idx); - -#endif
target/moxie/translate.c deleted +0 -892
892 lines not on this page · raw message
tests/qtest/boot-serial-test.c +0 -8
@@ -61,13 +61,6 @@ static const uint8_t kernel_plml605[] = {0xfc ,0xff ,0x00 ,0xb8 /* bri -4 loop */ }; -static const uint8_t bios_moxiesim[] = { -0x20 ,0x10 ,0x00 ,0x00 ,0x03 ,0xf8 ,/* ldi.s r1,0x3f8 */ -0x1b ,0x20 ,0x00 ,0x00 ,0x00 ,0x54 ,/* ldi.b r2,'T' */ -0x1e ,0x12 ,/* st.b r1,r2 */ -0x1a ,0x00 ,0x00 ,0x00 ,0x10 ,0x00 /* jmpa 0x1000 */ -}; -static const uint8_t bios_raspi2[] = {0x08 ,0x30 ,0x9f ,0xe5 ,/* ldr r3,[pc,#8] Get base */ 0x54, 0x20, 0xa0, 0xe3, /* mov r2,#'T' */
@@ -145,7 +138,6 @@ static testdef_t tests[] = { sizeof(kernel_pls3adsp1800), kernel_pls3adsp1800 }, {"microblazeel" ,"petalogix-ml605" ,"" ,"TT" , sizeof(kernel_plml605), kernel_plml605 }, - { "moxie", "moxiesim", "", "TT", sizeof(bios_moxiesim), 0, bios_moxiesim }, { "arm", "raspi2", "", "TT", sizeof(bios_raspi2), 0, bios_raspi2 },/* For hppa, force bios to output to serial by disabling graphics. */ { "hppa", "hppa", "-vga none", "SeaBIOS wants SYSTEM HALT" },
tests/qtest/machine-none-test.c +0 -1
@@ -40,7 +40,6 @@ static struct arch2cpu cpus_map[] = { { "mipsel", "I7200" }, { "mips64", "20Kc" }, { "mips64el", "I6500" }, - { "moxie", "MoxieLite" }, { "nios2", "FIXME" }, { "or1k", "or1200" }, { "ppc", "604" },
tests/qtest/meson.build +0 -2
@@ -126,8 +126,6 @@ qtests_mips64el = \ (config_all_devices.has_key('CONFIG_ISA_TESTDEV') ? ['endianness-test'] : []) + \ (config_all_devices.has_key('CONFIG_VGA') ? ['display-vga-test'] : []) -qtests_moxie = [ 'boot-serial-test' ] - qtests_ppc = \ (config_all_devices.has_key('CONFIG_ISA_TESTDEV') ? ['endianness-test'] : []) + \ (config_all_devices.has_key('CONFIG_M48T59') ? ['m48t59-test'] : []) + \
Signature · 1 line
2.27.0
Quoted 8 lines · Thomas Huth
There are no known users of this CPU anymore, and there are no binaries available online which could be used for regression tests, so the code has likely completly bit-rotten already. It's been marked as deprecated since two releases now and nobody spoke up that there is still a need to keep it, thus let's remov it now.
Signed-off-by Thomas Huth <[email protected]>
thanks
-- PMM
Quoted 8 lines · Thomas Huth
There are no known users of this CPU anymore, and there are no binaries available online which could be used for regression tests, so the code has likely completly bit-rotten already. It's been marked as deprecated since two releases now and nobody spoke up that there is still a need to keep it, thus let's remov it now.
Signed-off-by Thomas Huth<[email protected]>---
r~
Quoted 3 lines · Thomas Huth
There are no known users of this CPU anymore, and there are no binaries available online which could be used for regression tests, so the code has likely completly bit-rotten already. It's been
completely
Quoted 2 lines
marked as deprecated since two releases now and nobody spoke up that there is still a need to keep it, thus let's remov it now.
remove
Quoted 3 lines
Signed-off-by Thomas Huth <[email protected]>---
Signature · 3 lines
Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org