target/nios2: Remove the deprecated Nios II target
v2 cover target/nios2: Remove the deprecated Nios II target
Since v1:
- Remove user emulation too
- Remove ALTERA_TIMER
Philippe Mathieu-Daudé (3):
fpu/softfloat: Remove mention of TILE-Gx target target/nios2: Remove the deprecated Nios II target hw/timer: Remove the ALTERA_TIMER model
MAINTAINERS | 13 - docs/about/deprecated.rst | 11 - docs/about/emulation.rst | 7 - docs/about/removed-features.rst | 14 + docs/system/replay.rst | 2 +- docs/user/main.rst | 4 - configure | 2 - configs/devices/nios2-softmmu/default.mak | 6 - configs/targets/nios2-linux-user.mak | 1 - configs/targets/nios2-softmmu.mak | 2 - meson.build | 2 - qapi/machine.json | 2 +- hw/nios2/boot.h | 10 - include/disas/dis-asm.h | 5 - include/exec/poison.h | 2 - include/exec/user/abitypes.h | 3 +- include/hw/intc/nios2_vic.h | 66 - include/sysemu/arch_init.h | 1 - linux-user/nios2/sockbits.h | 1 - linux-user/nios2/syscall_nr.h | 333 -- linux-user/nios2/target_cpu.h | 49 - linux-user/nios2/target_elf.h | 14 - linux-user/nios2/target_errno_defs.h | 7 - linux-user/nios2/target_fcntl.h | 11 - linux-user/nios2/target_mman.h | 11 - linux-user/nios2/target_prctl.h | 1 - linux-user/nios2/target_proc.h | 1 - linux-user/nios2/target_resource.h | 1 - linux-user/nios2/target_signal.h | 9 - linux-user/nios2/target_structs.h | 1 - linux-user/nios2/target_syscall.h | 37 - linux-user/nios2/termbits.h | 1 - linux-user/syscall_defs.h | 4 +- target/nios2/cpu-param.h | 20 - target/nios2/cpu-qom.h | 18 - target/nios2/cpu.h | 301 -- target/nios2/helper.h | 32 - target/nios2/mmu.h | 52 - tests/tcg/nios2/semicall.h | 28 - disas/nios2.c | 3514 ----------------- hw/intc/nios2_vic.c | 313 -- hw/nios2/10m50_devboard.c | 181 - hw/nios2/boot.c | 234 -- hw/nios2/generic_nommu.c | 101 - hw/timer/altera_timer.c | 244 -- linux-user/elfload.c | 99 - linux-user/nios2/cpu_loop.c | 157 - linux-user/nios2/signal.c | 210 - target/nios2/cpu.c | 410 -- target/nios2/helper.c | 371 -- target/nios2/mmu.c | 216 - target/nios2/monitor.c | 35 - target/nios2/nios2-semi.c | 230 -- target/nios2/op_helper.c | 119 - target/nios2/translate.c | 1107 ------ tests/qtest/machine-none-test.c | 1 - fpu/softfloat-specialize.c.inc | 2 +- .gitlab-ci.d/buildtest.yml | 4 +- .gitlab-ci.d/crossbuild-template.yml | 2 +- .gitlab-ci.d/crossbuilds.yml | 2 +- disas/meson.build | 1 - hw/Kconfig | 1 - hw/intc/Kconfig | 3 - hw/intc/meson.build | 1 - hw/meson.build | 1 - hw/nios2/Kconfig | 13 - hw/nios2/meson.build | 6 - hw/timer/Kconfig | 4 - hw/timer/meson.build | 1 - qemu-options.hx | 8 +- scripts/coverity-scan/COMPONENTS.md | 3 - scripts/gensyscalls.sh | 1 - scripts/probe-gdb-support.py | 1 - target/Kconfig | 1 - target/meson.build | 1 - target/nios2/Kconfig | 3 - target/nios2/meson.build | 17 - target/nios2/trace-events | 10 - tests/avocado/boot_linux_console.py | 8 - tests/avocado/replay_kernel.py | 11 - tests/docker/Makefile.include | 5 - .../debian-nios2-cross.d/build-toolchain.sh | 87 - tests/tcg/nios2/10m50-ghrd.ld | 70 - tests/tcg/nios2/Makefile.softmmu-target | 32 - tests/tcg/nios2/Makefile.target | 11 - tests/tcg/nios2/boot.S | 218 - tests/tcg/nios2/intr.S | 31 - tests/tcg/nios2/test-shadow-1.S | 40 - 88 files changed, 28 insertions(+), 9198 deletions(-) delete mode 100644 configs/devices/nios2-softmmu/default.mak delete mode 100644 configs/targets/nios2-linux-user.mak delete mode 100644 configs/targets/nios2-softmmu.mak delete mode 100644 hw/nios2/boot.h delete mode 100644 include/hw/intc/nios2_vic.h delete mode 100644 linux-user/nios2/sockbits.h delete mode 100644 linux-user/nios2/syscall_nr.h delete mode 100644 linux-user/nios2/target_cpu.h delete mode 100644 linux-user/nios2/target_elf.h delete mode 100644 linux-user/nios2/target_errno_defs.h delete mode 100644 linux-user/nios2/target_fcntl.h delete mode 100644 linux-user/nios2/target_mman.h delete mode 100644 linux-user/nios2/target_prctl.h delete mode 100644 linux-user/nios2/target_proc.h delete mode 100644 linux-user/nios2/target_resource.h delete mode 100644 linux-user/nios2/target_signal.h delete mode 100644 linux-user/nios2/target_structs.h delete mode 100644 linux-user/nios2/target_syscall.h delete mode 100644 linux-user/nios2/termbits.h delete mode 100644 target/nios2/cpu-param.h delete mode 100644 target/nios2/cpu-qom.h delete mode 100644 target/nios2/cpu.h delete mode 100644 target/nios2/helper.h delete mode 100644 target/nios2/mmu.h delete mode 100644 tests/tcg/nios2/semicall.h delete mode 100644 disas/nios2.c delete mode 100644 hw/intc/nios2_vic.c delete mode 100644 hw/nios2/10m50_devboard.c delete mode 100644 hw/nios2/boot.c delete mode 100644 hw/nios2/generic_nommu.c delete mode 100644 hw/timer/altera_timer.c delete mode 100644 linux-user/nios2/cpu_loop.c delete mode 100644 linux-user/nios2/signal.c delete mode 100644 target/nios2/cpu.c delete mode 100644 target/nios2/helper.c delete mode 100644 target/nios2/mmu.c delete mode 100644 target/nios2/monitor.c delete mode 100644 target/nios2/nios2-semi.c delete mode 100644 target/nios2/op_helper.c delete mode 100644 target/nios2/translate.c delete mode 100644 hw/nios2/Kconfig delete mode 100644 hw/nios2/meson.build delete mode 100644 target/nios2/Kconfig delete mode 100644 target/nios2/meson.build delete mode 100644 target/nios2/trace-events delete mode 100755 tests/docker/dockerfiles/debian-nios2-cross.d/build-toolchain.sh delete mode 100644 tests/tcg/nios2/10m50-ghrd.ld delete mode 100644 tests/tcg/nios2/Makefile.softmmu-target delete mode 100644 tests/tcg/nios2/Makefile.target delete mode 100644 tests/tcg/nios2/boot.S delete mode 100644 tests/tcg/nios2/intr.S delete mode 100644 tests/tcg/nios2/test-shadow-1.S
Signature · 1 line
2.41.0
PATCH v2 1/3 fpu/softfloat: Remove mention of TILE-Gx target
TILE-Gx has been removed during the v6.0 release (see commit 2cc1a90166 "Remove deprecated target tilegx"), no need to mention it in the list of "supported targets".
--- fpu/softfloat-specialize.c.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fpu/softfloat-specialize.c.inc +1 -1
@@ -152,7 +152,7 @@ static void parts64_default_nan(FloatParts64 *p, float_status *status) /* * This case is true for Alpha, ARM, MIPS, OpenRISC, PPC, RISC-V, * S390, SH4, TriCore, and Xtensa. Our other supported targets, - * CRIS, Nios2, and Tile, do not have floating-point. + * CRIS and Nios2, do not have floating-point. */ if (snan_bit_is_one(status)) { /* set all bits other than msb */
Signature · 1 line
2.41.0
Re: [PATCH-for-9.0? v2 1/3] fpu/softfloat: Remove mention of TILE-Gx target
Quoted 14 lines · Philippe Mathieu-Daudé
TILE-Gx has been removed during the v6.0 release (see commit
2cc1a90166"Remove deprecated target tilegx"), no need to mention it in the list of "supported targets".Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- fpu/softfloat-specialize.c.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fpu/softfloat-specialize.c.inc +0
-0
fpu/softfloat-specialize.c.inc static void parts64_default_nan(FloatParts64 *p, float_status *status) · line 158
Quoted 8 lines
fpu/softfloat-specialize.c.inc +1
-1@@ -152,7 +152,7 @@ static void parts64_default_nan(FloatParts64 *p, float_status *status) /* * This case is true for Alpha, ARM, MIPS, OpenRISC, PPC, RISC-V, * S390, SH4, TriCore, and Xtensa. Our other supported targets, - * CRIS, Nios2, and Tile, do not have floating-point. + * CRIS and Nios2, do not have floating-point. */ if (snan_bit_is_one(status)) { /* set all bits other than msb */
Re: [PATCH-for-9.0? v2 1/3] fpu/softfloat: Remove mention of TILE-Gx target
In reply to Philippe Mathieu-DaudéQuoted 8 lines · Philippe Mathieu-Daudé
TILE-Gx has been removed during the v6.0 release (see commit
2cc1a90166"Remove deprecated target tilegx"), no need to mention it in the list of "supported targets".Signed-off-by Philippe Mathieu-Daudé<[email protected]>--- fpu/softfloat-specialize.c.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
r~
PATCH v2 2/3 target/nios2: Remove the deprecated Nios II target
In reply to Philippe Mathieu-DaudéThe Nios II target is deprecated since v8.2 in commit 9997771bc1 ("target/nios2: Deprecate the Nios II architecture").
Remove:
- Buildsys / CI infra
- User emulation
- System emulation (10m50-ghrd & nios2-generic-nommu machines)
- Tests
--- MAINTAINERS | 13 - docs/about/deprecated.rst | 11 - docs/about/emulation.rst | 7 - docs/about/removed-features.rst | 14 + docs/system/replay.rst | 2 +- docs/user/main.rst | 4 - configure | 2 - configs/devices/nios2-softmmu/default.mak | 6 - configs/targets/nios2-linux-user.mak | 1 - configs/targets/nios2-softmmu.mak | 2 - meson.build | 2 - qapi/machine.json | 2 +- hw/nios2/boot.h | 10 - include/disas/dis-asm.h | 5 - include/exec/poison.h | 2 - include/exec/user/abitypes.h | 3 +- include/hw/intc/nios2_vic.h | 66 - include/sysemu/arch_init.h | 1 - linux-user/nios2/sockbits.h | 1 - linux-user/nios2/syscall_nr.h | 333 -- linux-user/nios2/target_cpu.h | 49 - linux-user/nios2/target_elf.h | 14 - linux-user/nios2/target_errno_defs.h | 7 - linux-user/nios2/target_fcntl.h | 11 - linux-user/nios2/target_mman.h | 11 - linux-user/nios2/target_prctl.h | 1 - linux-user/nios2/target_proc.h | 1 - linux-user/nios2/target_resource.h | 1 - linux-user/nios2/target_signal.h | 9 - linux-user/nios2/target_structs.h | 1 - linux-user/nios2/target_syscall.h | 37 - linux-user/nios2/termbits.h | 1 - linux-user/syscall_defs.h | 4 +- target/nios2/cpu-param.h | 20 - target/nios2/cpu-qom.h | 18 - target/nios2/cpu.h | 301 -- target/nios2/helper.h | 32 - target/nios2/mmu.h | 52 - tests/tcg/nios2/semicall.h | 28 - disas/nios2.c | 3514 ----------------- hw/intc/nios2_vic.c | 313 -- hw/nios2/10m50_devboard.c | 181 - hw/nios2/boot.c | 234 -- hw/nios2/generic_nommu.c | 101 - linux-user/elfload.c | 99 - linux-user/nios2/cpu_loop.c | 157 - linux-user/nios2/signal.c | 210 - target/nios2/cpu.c | 410 -- target/nios2/helper.c | 371 -- target/nios2/mmu.c | 216 - target/nios2/monitor.c | 35 - target/nios2/nios2-semi.c | 230 -- target/nios2/op_helper.c | 119 - target/nios2/translate.c | 1107 ------ tests/qtest/machine-none-test.c | 1 - fpu/softfloat-specialize.c.inc | 2 +- .gitlab-ci.d/buildtest.yml | 4 +- .gitlab-ci.d/crossbuild-template.yml | 2 +- .gitlab-ci.d/crossbuilds.yml | 2 +- disas/meson.build | 1 - hw/Kconfig | 1 - hw/intc/Kconfig | 3 - hw/intc/meson.build | 1 - hw/meson.build | 1 - hw/nios2/Kconfig | 13 - hw/nios2/meson.build | 6 - qemu-options.hx | 8 +- scripts/coverity-scan/COMPONENTS.md | 3 - scripts/gensyscalls.sh | 1 - scripts/probe-gdb-support.py | 1 - target/Kconfig | 1 - target/meson.build | 1 - target/nios2/Kconfig | 3 - target/nios2/meson.build | 17 - target/nios2/trace-events | 10 - tests/avocado/boot_linux_console.py | 8 - tests/avocado/replay_kernel.py | 11 - tests/docker/Makefile.include | 5 - .../debian-nios2-cross.d/build-toolchain.sh | 87 - tests/tcg/nios2/10m50-ghrd.ld | 70 - tests/tcg/nios2/Makefile.softmmu-target | 32 - tests/tcg/nios2/Makefile.target | 11 - tests/tcg/nios2/boot.S | 218 - tests/tcg/nios2/intr.S | 31 - tests/tcg/nios2/test-shadow-1.S | 40 - 85 files changed, 28 insertions(+), 8949 deletions(-) delete mode 100644 configs/devices/nios2-softmmu/default.mak delete mode 100644 configs/targets/nios2-linux-user.mak delete mode 100644 configs/targets/nios2-softmmu.mak delete mode 100644 hw/nios2/boot.h delete mode 100644 include/hw/intc/nios2_vic.h delete mode 100644 linux-user/nios2/sockbits.h delete mode 100644 linux-user/nios2/syscall_nr.h delete mode 100644 linux-user/nios2/target_cpu.h delete mode 100644 linux-user/nios2/target_elf.h delete mode 100644 linux-user/nios2/target_errno_defs.h delete mode 100644 linux-user/nios2/target_fcntl.h delete mode 100644 linux-user/nios2/target_mman.h delete mode 100644 linux-user/nios2/target_prctl.h delete mode 100644 linux-user/nios2/target_proc.h delete mode 100644 linux-user/nios2/target_resource.h delete mode 100644 linux-user/nios2/target_signal.h delete mode 100644 linux-user/nios2/target_structs.h delete mode 100644 linux-user/nios2/target_syscall.h delete mode 100644 linux-user/nios2/termbits.h delete mode 100644 target/nios2/cpu-param.h delete mode 100644 target/nios2/cpu-qom.h delete mode 100644 target/nios2/cpu.h delete mode 100644 target/nios2/helper.h delete mode 100644 target/nios2/mmu.h delete mode 100644 tests/tcg/nios2/semicall.h delete mode 100644 disas/nios2.c delete mode 100644 hw/intc/nios2_vic.c delete mode 100644 hw/nios2/10m50_devboard.c delete mode 100644 hw/nios2/boot.c delete mode 100644 hw/nios2/generic_nommu.c delete mode 100644 linux-user/nios2/cpu_loop.c delete mode 100644 linux-user/nios2/signal.c delete mode 100644 target/nios2/cpu.c delete mode 100644 target/nios2/helper.c delete mode 100644 target/nios2/mmu.c delete mode 100644 target/nios2/monitor.c delete mode 100644 target/nios2/nios2-semi.c delete mode 100644 target/nios2/op_helper.c delete mode 100644 target/nios2/translate.c delete mode 100644 hw/nios2/Kconfig delete mode 100644 hw/nios2/meson.build delete mode 100644 target/nios2/Kconfig delete mode 100644 target/nios2/meson.build delete mode 100644 target/nios2/trace-events delete mode 100755 tests/docker/dockerfiles/debian-nios2-cross.d/build-toolchain.sh delete mode 100644 tests/tcg/nios2/10m50-ghrd.ld delete mode 100644 tests/tcg/nios2/Makefile.softmmu-target delete mode 100644 tests/tcg/nios2/Makefile.target delete mode 100644 tests/tcg/nios2/boot.S delete mode 100644 tests/tcg/nios2/intr.S delete mode 100644 tests/tcg/nios2/test-shadow-1.S
MAINTAINERS +0 -13
@@ -291,19 +291,6 @@ F: disas/*mips.c F: docs/system/cpu-models-mips.rst.inc F: tests/tcg/mips/ -NiosII TCG CPUs -R: Chris Wulff <[email protected]> -R: Marek Vasut <[email protected]> -S: Orphan -F: target/nios2/ -F: hw/nios2/ -F: hw/intc/nios2_vic.c -F: disas/nios2.c -F: include/hw/intc/nios2_vic.h -F: configs/devices/nios2-softmmu/default.mak -F: tests/docker/dockerfiles/debian-nios2-cross.d/build-toolchain.sh -F: tests/tcg/nios2/ - OpenRISC TCG CPUs M: Stafford Horne <[email protected]> S: Odd Fixes
docs/about/deprecated.rst +0 -11
@@ -185,12 +185,6 @@ it. Since all recent x86 hardware from the past >10 years is capable of the System emulator CPUs -------------------- -Nios II CPU (since 8.2) -''''''''''''''''''''''' - -The Nios II architecture is orphan. The ``nios2`` guest CPU support is -deprecated and will be removed in a future version of QEMU. - ``power5+`` and ``power7+`` CPU names (since 9.0) '''''''''''''''''''''''''''''''''''''''''''''''''
@@ -226,11 +220,6 @@ These old machine types are quite neglected nowadays and thus might have various pitfalls with regards to live migration. Use a newer machine type instead. -Nios II ``10m50-ghrd`` and ``nios2-generic-nommu`` machines (since 8.2) -''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' - -The Nios II architecture is orphan. - ``shix`` (since 9.0) ''''''''''''''''''''
docs/about/emulation.rst +0 -7
@@ -58,10 +58,6 @@ depending on the guest architecture. - :ref:`Yes<MIPS-System-emulator>` - Yes - Venerable RISC architecture originally out of Stanford University - * - Nios2 - - Yes - - Yes - - 32 bit embedded soft-core by Altera * - OpenRISC - :ref:`Yes<OpenRISC-System-emulator>` - Yes
@@ -180,9 +176,6 @@ for that architecture. * - MIPS - System - Unified Hosting Interface (MD01069) - * - Nios II - - System - - https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=blob;f=libgloss/nios2/nios2-semi.txt;hb=HEAD * - RISC-V - System and User-mode - https://github.com/riscv/riscv-semihosting-spec/blob/main/riscv-semihosting-spec.adoc
docs/about/removed-features.rst +14 -0
@@ -699,6 +699,11 @@ The RISC-V ISA privilege specification version 1.09.1 has been removed. QEMU supports both the newer version 1.10.0 and the ratified version 1.11.0, these should be used instead of the 1.09.1 version. +Nios II architecture (removed in 9.1) +''''''''''''''''''''''''''''''''''''' + +The Nios II architecture was orphan. + System emulator CPUS --------------------
@@ -841,6 +846,11 @@ ppc ``taihu`` machine (removed in 7.2) This machine was removed because it was partially emulated and 405 machines are very similar. Use the ``ref405ep`` machine instead. +Nios II ``10m50-ghrd`` and ``nios2-generic-nommu`` machines (removed in 9.1) +'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' + +The Nios II architecture was orphan. + linux-user mode CPUs --------------------
@@ -860,6 +870,10 @@ 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. +``nios2`` CPU (removed in 9.1) +'''''''''''''''''''''''''''''' + +The Nios II architecture was orphan. TCG introspection features --------------------------
docs/system/replay.rst +1 -1
@@ -24,7 +24,7 @@ Deterministic replay has the following features: * Writes execution log into the file for later replaying for multiple times on different machines. * Supports i386, x86_64, ARM, AArch64, Risc-V, MIPS, MIPS64, S390X, Alpha, - PowerPC, PowerPC64, M68000, Microblaze, OpenRISC, Nios II, SPARC, + PowerPC, PowerPC64, M68000, Microblaze, OpenRISC, SPARC, and Xtensa hardware platforms. * Performs deterministic replay of all operations with keyboard and mouse input devices, serial ports, and network.
docs/user/main.rst +0 -4
@@ -159,10 +159,6 @@ Other binaries * ``qemu-mipsn32el`` executes 32-bit little endian MIPS binaries (MIPS N32 ABI). -- user mode (NiosII) - - * ``qemu-nios2`` TODO. - - user mode (PowerPC) * ``qemu-ppc64`` TODO.
configure +0 -2
@@ -1169,7 +1169,6 @@ fi : ${cross_prefix_mips64="mips64-linux-gnuabi64-"} : ${cross_prefix_mipsel="mipsel-linux-gnu-"} : ${cross_prefix_mips="mips-linux-gnu-"} -: ${cross_prefix_nios2="nios2-linux-gnu-"} : ${cross_prefix_ppc="powerpc-linux-gnu-"} : ${cross_prefix_ppc64="powerpc64-linux-gnu-"} : ${cross_prefix_ppc64le="$cross_prefix_ppc64"}
@@ -1258,7 +1257,6 @@ probe_target_compiler() { mips64) container_hosts=x86_64 ;; mipsel) container_hosts=x86_64 ;; mips) container_hosts=x86_64 ;; - nios2) container_hosts=x86_64 ;; ppc) container_hosts=x86_64 ;; ppc64|ppc64le) container_hosts=x86_64 ;; riscv64) container_hosts=x86_64 ;;
configs/devices/nios2-softmmu/default.mak deleted +0 -6
@@ -1,6 +0,0 @@ -# Default configuration for nios2-softmmu - -# Boards: -# -CONFIG_NIOS2_10M50=y -CONFIG_NIOS2_GENERIC_NOMMU=y
configs/targets/nios2-linux-user.mak deleted +0 -1
@@ -1 +0,0 @@ -TARGET_ARCH=nios2
configs/targets/nios2-softmmu.mak deleted +0 -2
@@ -1,2 +0,0 @@ -TARGET_ARCH=nios2 -TARGET_NEED_FDT=y
meson.build +0 -2
@@ -2967,7 +2967,6 @@ disassemblers = { 'm68k' : ['CONFIG_M68K_DIS'], 'microblaze' : ['CONFIG_MICROBLAZE_DIS'], 'mips' : ['CONFIG_MIPS_DIS'], - 'nios2' : ['CONFIG_NIOS2_DIS'], 'or1k' : ['CONFIG_OPENRISC_DIS'], 'ppc' : ['CONFIG_PPC_DIS'], 'riscv' : ['CONFIG_RISCV_DIS'],
@@ -3394,7 +3393,6 @@ if have_system or have_user 'target/i386/kvm', 'target/loongarch', 'target/mips/tcg', - 'target/nios2', 'target/ppc', 'target/riscv', 'target/s390x',
qapi/machine.json +1 -1
@@ -33,7 +33,7 @@ { 'enum' : 'SysEmuTarget', 'data' : [ 'aarch64', 'alpha', 'arm', 'avr', 'cris', 'hppa', 'i386', 'loongarch64', 'm68k', 'microblaze', 'microblazeel', 'mips', 'mips64', - 'mips64el', 'mipsel', 'nios2', 'or1k', 'ppc', + 'mips64el', 'mipsel', 'or1k', 'ppc', 'ppc64', 'riscv32', 'riscv64', 'rx', 's390x', 'sh4', 'sh4eb', 'sparc', 'sparc64', 'tricore', 'x86_64', 'xtensa', 'xtensaeb' ] }
hw/nios2/boot.h deleted +0 -10
@@ -1,10 +0,0 @@ -#ifndef NIOS2_BOOT_H -#define NIOS2_BOOT_H - -#include "cpu.h" - -void nios2_load_kernel (Nios2CPU *cpu,hwaddr ddr_base,uint32_t ramsize, -const char *initrd_filename,const char *dtb_filename, -void (*machine_cpu_reset)(Nios2CPU *)); - -#endif /* NIOS2_BOOT_H */
include/disas/dis-asm.h +0 -5
@@ -241,10 +241,6 @@ enum bfd_architecture bfd_arch_ia64, /* HP/Intel ia64 */#define bfd_mach_ia64_elf64 64#define bfd_mach_ia64_elf32 32 - bfd_arch_nios2, /* Nios II */ -#define bfd_mach_nios2 0 -#define bfd_mach_nios2r1 1 -#define bfd_mach_nios2r2 2 bfd_arch_rx, /* Renesas RX */#define bfd_mach_rx 0x75#define bfd_mach_rx_v2 0x76
@@ -456,7 +452,6 @@ int print_insn_crisv32 (bfd_vma, disassemble_info*);int print_insn_crisv10 (bfd_vma ,disassemble_info *);int print_insn_microblaze (bfd_vma ,disassemble_info *);int print_insn_ia64 (bfd_vma ,disassemble_info *); -int print_insn_nios2 (bfd_vma ,disassemble_info *);int print_insn_xtensa (bfd_vma ,disassemble_info *);int print_insn_riscv32 (bfd_vma ,disassemble_info *);int print_insn_riscv64 (bfd_vma ,disassemble_info *);
include/exec/poison.h +0 -2
@@ -22,7 +22,6 @@#pragma GCC poison TARGET_ABI_MIPSO32#pragma GCC poison TARGET_MIPS64#pragma GCC poison TARGET_ABI_MIPSN64 -#pragma GCC poison TARGET_NIOS2#pragma GCC poison TARGET_OPENRISC#pragma GCC poison TARGET_PPC#pragma GCC poison TARGET_PPC64
@@ -73,7 +72,6 @@#pragma GCC poison CONFIG_M68K_DIS#pragma GCC poison CONFIG_MICROBLAZE_DIS#pragma GCC poison CONFIG_MIPS_DIS -#pragma GCC poison CONFIG_NIOS2_DIS#pragma GCC poison CONFIG_PPC_DIS#pragma GCC poison CONFIG_RISCV_DIS#pragma GCC poison CONFIG_S390_DIS
include/exec/user/abitypes.h +1 -2
@@ -25,8 +25,7 @@#if (defined(TARGET_I386 ) && !defined(TARGET_X86_64 )) \ || defined(TARGET_SH4 ) \ || defined(TARGET_OPENRISC ) \ - || defined(TARGET_MICROBLAZE ) \ - || defined(TARGET_NIOS2 ) + || defined(TARGET_MICROBLAZE )#define ABI_LLONG_ALIGNMENT 4#endif
include/hw/intc/nios2_vic.h deleted +0 -66
66 lines not on this page · raw message
include/sysemu/arch_init.h +0 -1
@@ -18,7 +18,6 @@ enum {QEMU_ARCH_XTENSA = (1 <<12 ),QEMU_ARCH_OPENRISC = (1 <<13 ),QEMU_ARCH_TRICORE = (1 <<16 ), -QEMU_ARCH_NIOS2 = (1 <<17 ),QEMU_ARCH_HPPA = (1 <<18 ),QEMU_ARCH_RISCV = (1 <<19 ), QEMU_ARCH_RX = (1 << 20),
linux-user/nios2/sockbits.h deleted +0 -1
@@ -1 +0,0 @@ -#include "../generic/sockbits.h"
linux-user/nios2/syscall_nr.h deleted +0 -333
333 lines not on this page · raw message
linux-user/nios2/target_cpu.h deleted +0 -49
49 lines not on this page · raw message
linux-user/nios2/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 NIOS2_TARGET_ELF_H -#define NIOS2_TARGET_ELF_H -static inline const char *cpu_get_model (uint32_t eflags) -{ -return "any" ; -} -#endif
linux-user/nios2/target_errno_defs.h deleted +0 -7
@@ -1,7 +0,0 @@ -#ifndef NIOS2_TARGET_ERRNO_DEFS_H -#define NIOS2_TARGET_ERRNO_DEFS_H - -/* Target uses generic errno */ -#include "../generic/target_errno_defs.h" - -#endif
linux-user/nios2/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 NIOS2_TARGET_FCNTL_H -#define NIOS2_TARGET_FCNTL_H -#include "../generic/fcntl.h" -#endif
linux-user/nios2/target_mman.h deleted +0 -11
@@ -1,11 +0,0 @@ -/* -* arch/nios2/include/asm/processor.h: -* TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3) -* TASK_SIZE 0x7FFF0000UL -*/ -#define TASK_UNMAPPED_BASE TARGET_PAGE_ALIGN(0x7FFF0000 / 3) - -/* arch/nios2/include/asm/elf.h */ -#define ELF_ET_DYN_BASE 0xD0000000 - -#include "../generic/target_mman.h"
linux-user/nios2/target_prctl.h deleted +0 -1
@@ -1 +0,0 @@ -/* No special prctl support required. */
linux-user/nios2/target_proc.h deleted +0 -1
@@ -1 +0,0 @@ -/* No target-specific /proc support */
linux-user/nios2/target_resource.h deleted +0 -1
@@ -1 +0,0 @@ -#include "../generic/target_resource.h"
linux-user/nios2/target_signal.h deleted +0 -9
@@ -1,9 +0,0 @@ -#ifndef NIOS2_TARGET_SIGNAL_H -#define NIOS2_TARGET_SIGNAL_H - -#include "../generic/signal.h" - -/* Nios2 uses a fixed address on the kuser page for sigreturn. */ -#define TARGET_ARCH_HAS_SIGTRAMP_PAGE 0 - -#endif /* NIOS2_TARGET_SIGNAL_H */
linux-user/nios2/target_structs.h deleted +0 -1
@@ -1 +0,0 @@ -#include "../generic/target_structs.h"
linux-user/nios2/target_syscall.h deleted +0 -37
@@ -1,37 +0,0 @@ -#ifndef NIOS2_TARGET_SYSCALL_H -#define NIOS2_TARGET_SYSCALL_H - -#define UNAME_MACHINE "nios2" -#define UNAME_MINIMUM_RELEASE "3.19.0" - -struct target_pt_regs { -unsigned long r8;/* r8-r15 Caller-saved GP registers */ -unsigned long r9; -unsigned long r10; -unsigned long r11; -unsigned long r12; -unsigned long r13; -unsigned long r14; -unsigned long r15; -unsigned long r1;/* Assembler temporary */ -unsigned long r2;/* Retval LS 32bits */ -unsigned long r3;/* Retval MS 32bits */ -unsigned long r4;/* r4-r7 Register arguments */ -unsigned long r5; -unsigned long r6; -unsigned long r7; -unsigned long orig_r2;/* Copy of r2 ?? */ -unsigned long ra;/* Return address */ -unsigned long fp;/* Frame pointer */ -unsigned long sp;/* Stack pointer */ -unsigned long gp;/* Global pointer */ -unsigned long estatus; -unsigned long ea;/* Exception return address (pc) */ -unsigned long orig_r7; -}; - -#define TARGET_MCL_CURRENT 1 -#define TARGET_MCL_FUTURE 2 -#define TARGET_MCL_ONFAULT 4 - -#endif /* NIOS2_TARGET_SYSCALL_H */
linux-user/nios2/termbits.h deleted +0 -1
@@ -1 +0,0 @@ -#include "../generic/termbits.h"
linux-user/syscall_defs.h +2 -2
@@ -73,7 +73,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_NIOS2 ) || defined(TARGET_RISCV ) \ + || defined(TARGET_RISCV ) \ || defined(TARGET_XTENSA ) || defined(TARGET_LOONGARCH64 )#define TARGET_IOC_SIZEBITS 14
@@ -1974,7 +1974,7 @@ struct target_stat64 { abi_ulong __unused5; }; -#elif defined(TARGET_OPENRISC) || defined(TARGET_NIOS2) \ +#elif defined(TARGET_OPENRISC) \ || defined(TARGET_RISCV) || defined(TARGET_HEXAGON)/* These are the asm-generic versions of the stat and stat64 structures */
target/nios2/cpu-param.h deleted +0 -20
@@ -1,20 +0,0 @@ -/* -* Altera Nios II cpu parameters for qemu. -* -* Copyright (c) 2012 Chris Wulff <[email protected]> -* SPDX-License-Identifier: LGPL-2.1+ -*/ - -#ifndef NIOS2_CPU_PARAM_H -#define NIOS2_CPU_PARAM_H - -#define TARGET_LONG_BITS 32 -#define TARGET_PAGE_BITS 12 -#define TARGET_PHYS_ADDR_SPACE_BITS 32 -#ifdef CONFIG_USER_ONLY -# define TARGET_VIRT_ADDR_SPACE_BITS 31 -#else -# define TARGET_VIRT_ADDR_SPACE_BITS 32 -#endif - -#endif
target/nios2/cpu-qom.h deleted +0 -18
@@ -1,18 +0,0 @@ -/* -* QEMU Nios II CPU QOM header (target agnostic) -* -* Copyright (c) 2012 Chris Wulff <[email protected]> -* -* SPDX-License-Identifier: LGPL-2.1-or-later -*/ - -#ifndef QEMU_NIOS2_CPU_QOM_H -#define QEMU_NIOS2_CPU_QOM_H - -#include "hw/core/cpu.h" - -#define TYPE_NIOS2_CPU "nios2-cpu" - -OBJECT_DECLARE_CPU_TYPE(Nios2CPU, Nios2CPUClass, NIOS2_CPU) - -#endif
target/nios2/cpu.h deleted +0 -301
301 lines not on this page · raw message
target/nios2/helper.h deleted +0 -32
@@ -1,32 +0,0 @@ -/* -* Altera Nios II helper routines header. -* -* Copyright (c) 2012 Chris Wulff <[email protected]> -* -* 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 library; if not, see -* <http://www.gnu.org/licenses/lgpl-2.1.html> -*/ - -DEF_HELPER_FLAGS_2(raise_exception, TCG_CALL_NO_WG, noreturn, env, i32) -DEF_HELPER_FLAGS_3(divs, TCG_CALL_NO_WG, s32, env, s32, s32) -DEF_HELPER_FLAGS_3(divu, TCG_CALL_NO_WG, i32, env, i32, i32) - -#if !defined(CONFIG_USER_ONLY ) -DEF_HELPER_3(eret, noreturn, env, i32, i32) -DEF_HELPER_FLAGS_2(rdprs, TCG_CALL_NO_WG, i32, env, i32) -DEF_HELPER_3(wrprs, void, env, i32, i32) -DEF_HELPER_2(mmu_write_tlbacc, void, env, i32) -DEF_HELPER_2(mmu_write_tlbmisc, void, env, i32) -DEF_HELPER_2(mmu_write_pteaddr, void, env, i32) -#endif
target/nios2/mmu.h deleted +0 -52
52 lines not on this page · raw message
tests/tcg/nios2/semicall.h deleted +0 -28
@@ -1,28 +0,0 @@ -/* -* Nios2 semihosting interface. -* -* Copyright Linaro Ltd 2022 -* SPDX-License-Identifier: GPL-2.0-or-later -*/ - -#ifndef SEMICALL_H -#define SEMICALL_H - -#define HOSTED_EXIT 0 -#define HOSTED_INIT_SIM 1 -#define HOSTED_OPEN 2 -#define HOSTED_CLOSE 3 -#define HOSTED_READ 4 -#define HOSTED_WRITE 5 -#define HOSTED_LSEEK 6 -#define HOSTED_RENAME 7 -#define HOSTED_UNLINK 8 -#define HOSTED_STAT 9 -#define HOSTED_FSTAT 10 -#define HOSTED_GETTIMEOFDAY 11 -#define HOSTED_ISATTY 12 -#define HOSTED_SYSTEM 13 - -#define semihosting_call break 1 - -#endif /* SEMICALL_H */
disas/nios2.c deleted +0 -3514
1,777 lines not on this page · raw message
hw/intc/nios2_vic.c deleted +0 -313
313 lines not on this page · raw message
hw/nios2/10m50_devboard.c deleted +0 -181
181 lines not on this page · raw message
hw/nios2/boot.c deleted +0 -234
234 lines not on this page · raw message
hw/nios2/generic_nommu.c deleted +0 -101
101 lines not on this page · raw message
linux-user/elfload.c +0 -99
99 lines not on this page · raw message
linux-user/nios2/cpu_loop.c deleted +0 -157
157 lines not on this page · raw message
linux-user/nios2/signal.c deleted +0 -210
210 lines not on this page · raw message
target/nios2/cpu.c deleted +0 -410
410 lines not on this page · raw message
target/nios2/helper.c deleted +0 -371
371 lines not on this page · raw message
target/nios2/mmu.c deleted +0 -216
216 lines not on this page · raw message
target/nios2/nios2-semi.c deleted +0 -230
230 lines not on this page · raw message
target/nios2/op_helper.c deleted +0 -119
119 lines not on this page · raw message
target/nios2/translate.c deleted +0 -1107
1,107 lines not on this page · raw message
tests/docker/dockerfiles/debian-nios2-cross.d/build-toolchain.sh deleted +0 -87
87 lines not on this page · raw message
tests/tcg/nios2/10m50-ghrd.ld deleted +0 -70
70 lines not on this page · raw message
tests/tcg/nios2/Makefile.softmmu-target deleted +0 -32
Lines of this file are not shown. View the raw message.
tests/tcg/nios2/Makefile.target deleted +0 -11
Lines of this file are not shown. View the raw message.
tests/tcg/nios2/boot.S deleted +0 -218
218 lines not on this page · raw message
tests/tcg/nios2/test-shadow-1.S deleted +0 -40
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.41.0
Part of the diff is not shown here. View the raw message.
Quoted 9 lines · Philippe Mathieu-Daudé
The Nios II target is deprecated since v8.2 in commit
9997771bc1("target/nios2: Deprecate the Nios II architecture").Remove:
- Buildsys / CI infra
- User emulation
- System emulation (10m50-ghrd & nios2-generic-nommu machines)
- Tests
Quoted 3 lines
Cc Marek Vasut<[email protected]>Signed-off-by Philippe Mathieu-Daudé<[email protected]>---
r~
Quoted 233 lines · Philippe Mathieu-Daudé
The Nios II target is deprecated since v8.2 in commit
9997771bc1("target/nios2: Deprecate the Nios II architecture").Remove:
- Buildsys / CI infra
- User emulation
- System emulation (10m50-ghrd & nios2-generic-nommu machines)
- TestsCc Marek Vasut <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- MAINTAINERS | 13 - docs/about/deprecated.rst | 11 - docs/about/emulation.rst | 7 - docs/about/removed-features.rst | 14 + docs/system/replay.rst | 2 +- docs/user/main.rst | 4 - configure | 2 - configs/devices/nios2-softmmu/default.mak | 6 - configs/targets/nios2-linux-user.mak | 1 - configs/targets/nios2-softmmu.mak | 2 - meson.build | 2 - qapi/machine.json | 2 +- hw/nios2/boot.h | 10 - include/disas/dis-asm.h | 5 - include/exec/poison.h | 2 - include/exec/user/abitypes.h | 3 +- include/hw/intc/nios2_vic.h | 66 - include/sysemu/arch_init.h | 1 - linux-user/nios2/sockbits.h | 1 - linux-user/nios2/syscall_nr.h | 333 -- linux-user/nios2/target_cpu.h | 49 - linux-user/nios2/target_elf.h | 14 - linux-user/nios2/target_errno_defs.h | 7 - linux-user/nios2/target_fcntl.h | 11 - linux-user/nios2/target_mman.h | 11 - linux-user/nios2/target_prctl.h | 1 - linux-user/nios2/target_proc.h | 1 - linux-user/nios2/target_resource.h | 1 - linux-user/nios2/target_signal.h | 9 - linux-user/nios2/target_structs.h | 1 - linux-user/nios2/target_syscall.h | 37 - linux-user/nios2/termbits.h | 1 - linux-user/syscall_defs.h | 4 +- target/nios2/cpu-param.h | 20 - target/nios2/cpu-qom.h | 18 - target/nios2/cpu.h | 301 -- target/nios2/helper.h | 32 - target/nios2/mmu.h | 52 - tests/tcg/nios2/semicall.h | 28 - disas/nios2.c | 3514 ----------------- hw/intc/nios2_vic.c | 313 -- hw/nios2/10m50_devboard.c | 181 - hw/nios2/boot.c | 234 -- hw/nios2/generic_nommu.c | 101 - linux-user/elfload.c | 99 - linux-user/nios2/cpu_loop.c | 157 - linux-user/nios2/signal.c | 210 - target/nios2/cpu.c | 410 -- target/nios2/helper.c | 371 -- target/nios2/mmu.c | 216 - target/nios2/monitor.c | 35 - target/nios2/nios2-semi.c | 230 -- target/nios2/op_helper.c | 119 - target/nios2/translate.c | 1107 ------ tests/qtest/machine-none-test.c | 1 - fpu/softfloat-specialize.c.inc | 2 +- .gitlab-ci.d/buildtest.yml | 4 +- .gitlab-ci.d/crossbuild-template.yml | 2 +- .gitlab-ci.d/crossbuilds.yml | 2 +- disas/meson.build | 1 - hw/Kconfig | 1 - hw/intc/Kconfig | 3 - hw/intc/meson.build | 1 - hw/meson.build | 1 - hw/nios2/Kconfig | 13 - hw/nios2/meson.build | 6 - qemu-options.hx | 8 +- scripts/coverity-scan/COMPONENTS.md | 3 - scripts/gensyscalls.sh | 1 - scripts/probe-gdb-support.py | 1 - target/Kconfig | 1 - target/meson.build | 1 - target/nios2/Kconfig | 3 - target/nios2/meson.build | 17 - target/nios2/trace-events | 10 - tests/avocado/boot_linux_console.py | 8 - tests/avocado/replay_kernel.py | 11 - tests/docker/Makefile.include | 5 - .../debian-nios2-cross.d/build-toolchain.sh | 87 - tests/tcg/nios2/10m50-ghrd.ld | 70 - tests/tcg/nios2/Makefile.softmmu-target | 32 - tests/tcg/nios2/Makefile.target | 11 - tests/tcg/nios2/boot.S | 218 - tests/tcg/nios2/intr.S | 31 - tests/tcg/nios2/test-shadow-1.S | 40 - 85 files changed, 28 insertions(+), 8949 deletions(-)delete mode 100644 configs/devices/nios2-softmmu/default.mak
delete mode 100644 configs/targets/nios2-linux-user.mak
delete mode 100644 configs/targets/nios2-softmmu.mak
delete mode 100644hw/nios2/boot.h
delete mode 100644include/hw/intc/nios2_vic.h
delete mode 100644linux-user/nios2/sockbits.h
delete mode 100644linux-user/nios2/syscall_nr.h
delete mode 100644linux-user/nios2/target_cpu.h
delete mode 100644linux-user/nios2/target_elf.h
delete mode 100644linux-user/nios2/target_errno_defs.h
delete mode 100644linux-user/nios2/target_fcntl.h
delete mode 100644linux-user/nios2/target_mman.h
delete mode 100644linux-user/nios2/target_prctl.h
delete mode 100644linux-user/nios2/target_proc.h
delete mode 100644linux-user/nios2/target_resource.h
delete mode 100644linux-user/nios2/target_signal.h
delete mode 100644linux-user/nios2/target_structs.h
delete mode 100644linux-user/nios2/target_syscall.h
delete mode 100644linux-user/nios2/termbits.h
delete mode 100644target/nios2/cpu-param.h
delete mode 100644target/nios2/cpu-qom.h
delete mode 100644target/nios2/cpu.h
delete mode 100644target/nios2/helper.h
delete mode 100644target/nios2/mmu.h
delete mode 100644tests/tcg/nios2/semicall.h
delete mode 100644disas/nios2.c
delete mode 100644hw/intc/nios2_vic.c
delete mode 100644hw/nios2/10m50_devboard.c
delete mode 100644hw/nios2/boot.c
delete mode 100644hw/nios2/generic_nommu.c
delete mode 100644linux-user/nios2/cpu_loop.c
delete mode 100644linux-user/nios2/signal.c
delete mode 100644target/nios2/cpu.c
delete mode 100644target/nios2/helper.c
delete mode 100644target/nios2/mmu.c
delete mode 100644target/nios2/monitor.c
delete mode 100644target/nios2/nios2-semi.c
delete mode 100644target/nios2/op_helper.c
delete mode 100644target/nios2/translate.c
delete mode 100644 hw/nios2/Kconfig
delete mode 100644 hw/nios2/meson.build
delete mode 100644 target/nios2/Kconfig
delete mode 100644 target/nios2/meson.build
delete mode 100644 target/nios2/trace-events
delete mode 100755tests/docker/dockerfiles/debian-nios2-cross.d/build-toolchain.shdelete mode 100644 tests/tcg/nios2/10m50-ghrd.ld
delete mode 100644 tests/tcg/nios2/Makefile.softmmu-target
delete mode 100644 tests/tcg/nios2/Makefile.target
delete mode 100644tests/tcg/nios2/boot.S
delete mode 100644tests/tcg/nios2/intr.S
delete mode 100644tests/tcg/nios2/test-shadow-1.SMAINTAINERS +0
-13@@ -291,19 +291,6 @@ F: disas/*mips.c F: docs/system/cpu-models-mips.rst.inc F: tests/tcg/mips/ -NiosII TCG CPUs -R: Chris Wulff <[email protected]> -R: Marek Vasut <[email protected]> -S: Orphan -F: target/nios2/ -F: hw/nios2/ -F: hw/intc/nios2_vic.c -F: disas/nios2.c -F: include/hw/intc/nios2_vic.h -F: configs/devices/nios2-softmmu/default.mak -F: tests/docker/dockerfiles/debian-nios2-cross.d/build-toolchain.sh -F: tests/tcg/nios2/ - OpenRISC TCG CPUs M: Stafford Horne <[email protected]> S: Odd Fixesdocs/about/deprecated.rst +0
-11@@ -185,12 +185,6 @@ it. Since all recent x86 hardware from the past >10 years is capable of the System emulator CPUs -------------------- -Nios II CPU (since 8.2) -''''''''''''''''''''''' - -The Nios II architecture is orphan. The ``nios2`` guest CPU support is -deprecated and will be removed in a future version of QEMU. - ``power5+`` and ``power7+`` CPU names (since 9.0) '''''''''''''''''''''''''''''''''''''''''''''''''@@ -226,11 +220,6 @@ These old machine types are quite neglected nowadays and thus might have various pitfalls with regards to live migration. Use a newer machine type instead. -Nios II ``10m50-ghrd`` and ``nios2-generic-nommu`` machines (since 8.2) -''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' - -The Nios II architecture is orphan. - ``shix`` (since 9.0) ''''''''''''''''''''docs/about/emulation.rst +0
-7@@ -58,10 +58,6 @@ depending on the guest architecture. - :ref:`Yes<MIPS-System-emulator>` - Yes - Venerable RISC architecture originally out of Stanford University - * - Nios2 - - Yes - - Yes - - 32 bit embedded soft-core by Altera * - OpenRISC - :ref:`Yes<OpenRISC-System-emulator>` - Yes@@ -180,9 +176,6 @@ for that architecture. * - MIPS - System - Unified Hosting Interface (MD01069) - * - Nios II - - System - - https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=blob;f=libgloss/nios2/nios2-semi.txt;hb=HEAD * - RISC-V - System and User-mode - https://github.com/riscv/riscv-semihosting-spec/blob/main/riscv-semihosting-spec.adocdocs/about/removed-features.rst +0
-0
docs/about/removed-features.rst The RISC-V ISA privilege specification version 1.09.1 has been removed. · line 705
Quoted 7 lines
docs/about/removed-features.rst +4
-0@@ -699,6 +699,11 @@ The RISC-V ISA privilege specification version 1.09.1 has been removed. QEMU supports both the newer version 1.10.0 and the ratified version 1.11.0, these should be used instead of the 1.09.1 version. +Nios II architecture (removed in 9.1) +''''''''''''''''''''''''''''''''''''' + +The Nios II architecture was orphan.
Per Sandra's comment in
https://lore.kernel.org/qemu-devel/[email protected]/
Maybe we could change to:
+Intel has EOL'ed the Nios II processor IP and is now directing +their FPGA customers to a RISC-V platform instead. +See `Intel discontinuance notification
<https://www.intel.com/content/www/us/en/content-details/781327/intel-is-discontinuing-ip-ordering-codes-listed-in-pdn2312-for-nios-ii-ip.html>`_.
Quoted 17 lines
docs/about/removed-features.rst +6
-0+ System emulator CPUS --------------------@@ -841,6 +846,11 @@ ppc ``taihu`` machine (removed in 7.2) This machine was removed because it was partially emulated and 405 machines are very similar. Use the ``ref405ep`` machine instead. +Nios II ``10m50-ghrd`` and ``nios2-generic-nommu`` machines (removed in 9.1) +'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' + +The Nios II architecture was orphan. + linux-user mode CPUs --------------------
docs/about/removed-features.rst The ``ppc64abi32`` architecture has a number of issues which regularly · line 879
Quoted 10 lines
docs/about/removed-features.rst +4
-0@@ -860,6 +870,10 @@ 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. +``nios2`` CPU (removed in 9.1) +'''''''''''''''''''''''''''''' + +The Nios II architecture was orphan. TCG introspection features --------------------------
(Original patch content:
https://lore.kernel.org/qemu-devel/[email protected]/)
Quoted 4 lines · Philippe Mathieu-Daudé
Quoted 3 lines · Philippe Mathieu-Daudé
The Nios II target is deprecated since v8.2 in commit
9997771bc1("target/nios2: Deprecate the Nios II architecture").
Quoted 8 lines
Quoted 8 lines
Remove:
- Buildsys / CI infra
- User emulation
- System emulation (10m50-ghrd & nios2-generic-nommu machines)
- TestsCc Marek Vasut <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Thank you
Hi Marek,
Quoted 11 lines · Marek Vasut
Quoted 10 lines · Philippe Mathieu-Daudé
Quoted 9 lines · Philippe Mathieu-Daudé
The Nios II target is deprecated since v8.2 in commit
9997771bc1("target/nios2: Deprecate the Nios II architecture").Remove:
- Buildsys / CI infra
- User emulation
- System emulation (10m50-ghrd & nios2-generic-nommu machines)
- Tests
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines
Cc Marek Vasut <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>Thank you
Thank you for adding NiosII user emulation and the 10M50 board to QEMU :)
Can I use your Ack-by tag on this commit?
Regards,
Phil.
Marek Vasut
Acked-byQuoted 17 lines · Philippe Mathieu-Daudé
Hi Marek,
Quoted 14 lines · Marek Vasut
Quoted 12 lines · Philippe Mathieu-Daudé
Quoted 11 lines · Philippe Mathieu-Daudé
The Nios II target is deprecated since v8.2 in commit
9997771bc1("target/nios2: Deprecate the Nios II architecture").Remove:
- Buildsys / CI infra
- User emulation
- System emulation (10m50-ghrd & nios2-generic-nommu machines)
- TestsCc Marek Vasut <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Quoted 6 lines
Quoted 1 line
Thank you
Thank you for adding NiosII user emulation and the 10M50 board to QEMU :)
Can I use your Ack-by tag on this commit?
PATCH v2 3/3 hw/timer: Remove the ALTERA_TIMER model
In reply to Philippe Mathieu-DaudéThe ALTERA_TIMER was only used by Nios II machines, which have been removed. Since it has no direct user, remove it.
--- hw/timer/altera_timer.c | 244 ---------------------------------------- hw/timer/Kconfig | 4 - hw/timer/meson.build | 1 - 3 files changed, 249 deletions(-) delete mode 100644 hw/timer/altera_timer.c
hw/timer/altera_timer.c deleted +0 -244
@@ -1,244 +0,0 @@ -/* -* QEMU model of the Altera timer. -* -* Copyright (c) 2012 Chris Wulff <[email protected]> -* -* 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 library; if not, see -* <http://www.gnu.org/licenses/lgpl-2.1.html> -*/ - -#include "qemu/osdep.h" -#include "qemu/module.h" -#include "qapi/error.h" - -#include "hw/sysbus.h" -#include "hw/irq.h" -#include "hw/ptimer.h" -#include "hw/qdev-properties.h" -#include "qom/object.h" - -#define R_STATUS 0 -#define R_CONTROL 1 -#define R_PERIODL 2 -#define R_PERIODH 3 -#define R_SNAPL 4 -#define R_SNAPH 5 -#define R_MAX 6 - -#define STATUS_TO 0x0001 -#define STATUS_RUN 0x0002 - -#define CONTROL_ITO 0x0001 -#define CONTROL_CONT 0x0002 -#define CONTROL_START 0x0004 -#define CONTROL_STOP 0x0008 - -#define TYPE_ALTERA_TIMER "ALTR.timer" -OBJECT_DECLARE_SIMPLE_TYPE(AlteraTimer, ALTERA_TIMER) - -struct AlteraTimer { -SysBusDevice busdev; -MemoryRegion mmio; -qemu_irq irq; -uint32_t freq_hz; -ptimer_state *ptimer; -uint32_t regs[R_MAX ]; -}; - -static int timer_irq_state (AlteraTimer *t) -{ -bool irq = (t->regs[R_STATUS ] &STATUS_TO ) && - (t->regs[R_CONTROL ] &CONTROL_ITO ); -return irq; -} - -static uint64_t timer_read (void *opaque,hwaddr addr, -unsigned int size) -{ -AlteraTimer *t = opaque; -uint64_t r =0 ; - - addr >>=2 ; - -switch (addr) { -case R_CONTROL : - r = t->regs[R_CONTROL ] & (CONTROL_ITO |CONTROL_CONT ); -break ; - -default : -if (addr <ARRAY_SIZE (t->regs)) { - r = t->regs[addr]; - } -break ; - } - -return r; -} - -static void timer_write (void *opaque,hwaddr addr, -uint64_t value,unsigned int size) -{ -AlteraTimer *t = opaque; -uint64_t tvalue; -uint32_t count =0 ; -int irqState =timer_irq_state (t); - - addr >>=2 ; - -switch (addr) { -case R_STATUS : -/* The timeout bit is cleared by writing the status register. */ - t->regs[R_STATUS ] &= ~STATUS_TO ; -break ; - -case R_CONTROL : -ptimer_transaction_begin (t->ptimer); - t->regs[R_CONTROL ] = value & (CONTROL_ITO |CONTROL_CONT ); -if ((value &CONTROL_START ) && - !(t->regs[R_STATUS ] &STATUS_RUN )) { -ptimer_run (t->ptimer,1 ); - t->regs[R_STATUS ] |=STATUS_RUN ; - } -if ((value &CONTROL_STOP ) && (t->regs[R_STATUS ] &STATUS_RUN )) { -ptimer_stop (t->ptimer); - t->regs[R_STATUS ] &= ~STATUS_RUN ; - } -ptimer_transaction_commit (t->ptimer); -break ; - -case R_PERIODL : -case R_PERIODH : -ptimer_transaction_begin (t->ptimer); - t->regs[addr] = value &0xFFFF ; -if (t->regs[R_STATUS ] &STATUS_RUN ) { -ptimer_stop (t->ptimer); - t->regs[R_STATUS ] &= ~STATUS_RUN ; - } - tvalue = (t->regs[R_PERIODH ] <<16 ) | t->regs[R_PERIODL ]; -ptimer_set_limit (t->ptimer, tvalue +1 ,1 ); -ptimer_transaction_commit (t->ptimer); -break ; - -case R_SNAPL : -case R_SNAPH : - count =ptimer_get_count (t->ptimer); - t->regs[R_SNAPL ] = count &0xFFFF ; - t->regs[R_SNAPH ] = count >>16 ; -break ; - -default : -break ; - } - -if (irqState !=timer_irq_state (t)) { -qemu_set_irq (t->irq,timer_irq_state (t)); - } -} - -static const MemoryRegionOps timer_ops = { - .read = timer_read, - .write = timer_write, - .endianness =DEVICE_NATIVE_ENDIAN , - .valid = { - .min_access_size =1 , - .max_access_size =4 - } -}; - -static void timer_hit (void *opaque) -{ -AlteraTimer *t = opaque; -const uint64_t tvalue = (t->regs[R_PERIODH ] <<16 ) | t->regs[R_PERIODL ]; - - t->regs[R_STATUS ] |=STATUS_TO ; - -ptimer_set_limit (t->ptimer, tvalue +1 ,1 ); - -if (!(t->regs[R_CONTROL ] &CONTROL_CONT )) { - t->regs[R_STATUS ] &= ~STATUS_RUN ; -ptimer_set_count (t->ptimer, tvalue); - }else { -ptimer_run (t->ptimer,1 ); - } - -qemu_set_irq (t->irq,timer_irq_state (t)); -} - -static void altera_timer_realize (DeviceState *dev,Error **errp) -{ -AlteraTimer *t =ALTERA_TIMER (dev); -SysBusDevice *sbd =SYS_BUS_DEVICE (dev); - -if (t->freq_hz ==0 ) { -error_setg (errp,"\"clock-frequency\" property must be provided." ); -return ; - } - - t->ptimer =ptimer_init (timer_hit, t,PTIMER_POLICY_LEGACY ); -ptimer_transaction_begin (t->ptimer); -ptimer_set_freq (t->ptimer, t->freq_hz); -ptimer_transaction_commit (t->ptimer); - -memory_region_init_io (&t->mmio,OBJECT (t), &timer_ops, t, -TYPE_ALTERA_TIMER ,R_MAX *sizeof (uint32_t )); -sysbus_init_mmio (sbd, &t->mmio); -} - -static void altera_timer_init (Object *obj) -{ -AlteraTimer *t =ALTERA_TIMER (obj); -SysBusDevice *sbd =SYS_BUS_DEVICE (obj); - -sysbus_init_irq (sbd, &t->irq); -} - -static void altera_timer_reset (DeviceState *dev) -{ -AlteraTimer *t =ALTERA_TIMER (dev); - -ptimer_transaction_begin (t->ptimer); -ptimer_stop (t->ptimer); -ptimer_set_limit (t->ptimer,0xffffffff ,1 ); -ptimer_transaction_commit (t->ptimer); -memset (t->regs,0 ,sizeof (t->regs)); -} - -static Property altera_timer_properties[] = { -DEFINE_PROP_UINT32 ("clock-frequency" , AlteraTimer, freq_hz,0 ), -DEFINE_PROP_END_OF_LIST (), -}; - -static void altera_timer_class_init (ObjectClass *klass,void *data) -{ -DeviceClass *dc =DEVICE_CLASS (klass); - - dc->realize = altera_timer_realize; -device_class_set_props (dc, altera_timer_properties); - dc->reset = altera_timer_reset; -} - -static const TypeInfo altera_timer_info = { - .name =TYPE_ALTERA_TIMER , - .parent =TYPE_SYS_BUS_DEVICE , - .instance_size =sizeof (AlteraTimer), - .instance_init = altera_timer_init, - .class_init = altera_timer_class_init, -}; - -static void altera_timer_register (void ) -{ -type_register_static (&altera_timer_info); -} - -type_init (altera_timer_register)
hw/timer/Kconfig +0 -4
@@ -17,10 +17,6 @@ config I8254 bool depends on ISA_BUS -config ALTERA_TIMER - bool - select PTIMER - config ALLWINNER_A10_PIT bool select PTIMER
hw/timer/meson.build +0 -1
@@ -1,6 +1,5 @@ system_ss.add(when: 'CONFIG_A9_GTIMER', if_true: files('a9gtimer.c')) system_ss.add(when: 'CONFIG_ALLWINNER_A10_PIT', if_true: files('allwinner-a10-pit.c')) -system_ss.add(when: 'CONFIG_ALTERA_TIMER', if_true: files('altera_timer.c')) system_ss.add(when: 'CONFIG_ARM_MPTIMER', if_true: files('arm_mptimer.c')) system_ss.add(when: 'CONFIG_ARM_TIMER', if_true: files('arm_timer.c')) system_ss.add(when: 'CONFIG_ARM_V7M', if_true: files('armv7m_systick.c'))
Signature · 1 line
2.41.0
Re: [PATCH-for-9.1 v2 3/3] hw/timer: Remove the ALTERA_TIMER model
Quoted 11 lines · Philippe Mathieu-Daudé
The
ALTERA_TIMERwas only used by Nios II machines, which have been removed. Since it has no direct user, remove it.Signed-off-by Philippe Mathieu-Daudé<[email protected]>--- hw/timer/altera_timer.c | 244 ---------------------------------------- hw/timer/Kconfig | 4 - hw/timer/meson.build | 1 - 3 files changed, 249 deletions(-)delete mode 100644
hw/timer/altera_timer.c
r~
Quoted 8 lines · Philippe Mathieu-Daudé
Since v1:
- Remove user emulation too
- RemoveALTERA_TIMERPhilippe Mathieu-Daudé (3):
fpu/softfloat: Remove mention of TILE-Gx target target/nios2: Remove the deprecated Nios II target hw/timer: Remove theALTERA_TIMERmodel
Patch 1 merged as commit 9988c7b50e, queuing patches 2 and 3 for 9.1, thanks.