target/cris: Remove the deprecated CRIS target
v2 cover target/cris: Remove the deprecated CRIS target
Since v1:
- Split in smaller patches (pm215)o
The CRIS target is deprecated since v9.0 (commit c7bbef40234 "docs: mark CRIS support as deprecated").
Remove:
- Buildsys / CI infra
- User emulation
- System emulation (axis-dev88 machine and ETRAX devices)
- Tests
Philippe Mathieu-Daudé (15):
tests/tcg: Remove CRIS libc test files
tests/tcg: Remove CRIS bare test files
buildsys: Remove CRIS cross container
linux-user: Remove support for CRIS target
hw/cris: Remove the axis-dev88 machine
hw/cris: Remove image loader helper
hw/intc: Remove TYPE_ETRAX_FS_PIC device
hw/char: Remove TYPE_ETRAX_FS_SERIAL device
hw/net: Remove TYPE_ETRAX_FS_ETH device
hw/dma: Remove ETRAX_FS DMA device
hw/timer: Remove TYPE_ETRAX_FS_TIMER device
system: Remove support for CRIS target
target/cris: Remove the deprecated CRIS target
disas: Remove CRIS disassembler
seccomp: Remove check for CRIS host
MAINTAINERS | 17 - docs/about/deprecated.rst | 8 - docs/about/emulation.rst | 4 - docs/about/removed-features.rst | 7 + docs/user/main.rst | 4 - configure | 4 - configs/devices/cris-softmmu/default.mak | 4 - configs/targets/cris-linux-user.mak | 1 - configs/targets/cris-softmmu.mak | 1 - meson.build | 1 - qapi/machine.json | 2 +- hw/cris/boot.h | 16 - include/disas/dis-asm.h | 6 - include/exec/poison.h | 2 - include/hw/cris/etraxfs.h | 54 - include/hw/cris/etraxfs_dma.h | 36 - include/sysemu/arch_init.h | 1 - include/user/abitypes.h | 7 - linux-user/cris/sockbits.h | 1 - linux-user/cris/syscall_nr.h | 367 -- linux-user/cris/target_cpu.h | 45 - linux-user/cris/target_elf.h | 14 - linux-user/cris/target_errno_defs.h | 7 - linux-user/cris/target_fcntl.h | 11 - linux-user/cris/target_mman.h | 13 - linux-user/cris/target_prctl.h | 1 - linux-user/cris/target_proc.h | 1 - linux-user/cris/target_resource.h | 1 - linux-user/cris/target_signal.h | 9 - linux-user/cris/target_structs.h | 1 - linux-user/cris/target_syscall.h | 46 - linux-user/cris/termbits.h | 225 -- linux-user/syscall_defs.h | 7 +- target/cris/cpu-param.h | 16 - target/cris/cpu-qom.h | 32 - target/cris/cpu.h | 286 -- target/cris/crisv10-decode.h | 112 - target/cris/crisv32-decode.h | 133 - target/cris/helper.h | 23 - target/cris/mmu.h | 22 - target/cris/opcode-cris.h | 355 -- tests/tcg/cris/libc/crisutils.h | 76 - tests/tcg/cris/libc/sys.h | 18 - disas/cris.c | 2863 --------------- hw/char/etraxfs_ser.c | 267 -- hw/cris/axis_dev88.c | 351 -- hw/cris/boot.c | 102 - hw/dma/etraxfs_dma.c | 781 ---- hw/intc/etraxfs_pic.c | 172 - hw/net/etraxfs_eth.c | 688 ---- hw/timer/etraxfs_timer.c | 407 --- linux-user/cris/cpu_loop.c | 95 - linux-user/cris/signal.c | 194 - linux-user/elfload.c | 15 - linux-user/syscall.c | 10 +- system/qemu-seccomp.c | 2 +- target/cris/cpu.c | 323 -- target/cris/gdbstub.c | 127 - target/cris/helper.c | 287 -- target/cris/machine.c | 93 - target/cris/mmu.c | 356 -- target/cris/op_helper.c | 580 --- target/cris/translate.c | 3252 ----------------- tests/qtest/machine-none-test.c | 1 - tests/tcg/cris/bare/sys.c | 63 - tests/tcg/cris/libc/check_abs.c | 40 - tests/tcg/cris/libc/check_addc.c | 58 - tests/tcg/cris/libc/check_addcm.c | 85 - tests/tcg/cris/libc/check_addo.c | 125 - tests/tcg/cris/libc/check_addoq.c | 44 - tests/tcg/cris/libc/check_bound.c | 142 - tests/tcg/cris/libc/check_ftag.c | 37 - .../cris/libc/check_gcctorture_pr28634-1.c | 15 - .../tcg/cris/libc/check_gcctorture_pr28634.c | 15 - .../tcg/cris/libc/check_glibc_kernelversion.c | 116 - tests/tcg/cris/libc/check_hello.c | 7 - tests/tcg/cris/libc/check_int64.c | 47 - tests/tcg/cris/libc/check_lz.c | 49 - tests/tcg/cris/libc/check_mapbrk.c | 39 - tests/tcg/cris/libc/check_mmap1.c | 48 - tests/tcg/cris/libc/check_mmap2.c | 48 - tests/tcg/cris/libc/check_mmap3.c | 33 - tests/tcg/cris/libc/check_moveq.c | 51 - tests/tcg/cris/libc/check_openpf1.c | 38 - tests/tcg/cris/libc/check_openpf2.c | 16 - tests/tcg/cris/libc/check_openpf3.c | 49 - tests/tcg/cris/libc/check_openpf5.c | 56 - tests/tcg/cris/libc/check_settls1.c | 45 - tests/tcg/cris/libc/check_sigalrm.c | 26 - tests/tcg/cris/libc/check_stat1.c | 16 - tests/tcg/cris/libc/check_stat2.c | 20 - tests/tcg/cris/libc/check_stat3.c | 25 - tests/tcg/cris/libc/check_stat4.c | 27 - tests/tcg/cris/libc/check_swap.c | 76 - tests/tcg/cris/libc/check_time2.c | 18 - fpu/softfloat-specialize.c.inc | 4 +- target/cris/translate_v10.c.inc | 1262 ------- .gitlab-ci.d/buildtest.yml | 2 +- .gitlab-ci.d/container-cross.yml | 5 - .gitlab-ci.d/crossbuild-template.yml | 4 +- disas/meson.build | 1 - hw/Kconfig | 1 - hw/char/meson.build | 1 - hw/cris/Kconfig | 11 - hw/cris/meson.build | 5 - hw/dma/meson.build | 1 - hw/intc/meson.build | 1 - hw/meson.build | 1 - hw/net/meson.build | 1 - hw/net/trace-events | 5 - hw/timer/meson.build | 1 - scripts/coverity-scan/COMPONENTS.md | 3 - scripts/probe-gdb-support.py | 1 - target/Kconfig | 1 - target/cris/Kconfig | 2 - target/cris/meson.build | 17 - target/meson.build | 1 - tests/data/qobject/qdict.txt | 6 - tests/docker/Makefile.include | 1 - .../dockerfiles/fedora-cris-cross.docker | 14 - tests/tcg/cris/.gdbinit | 11 - tests/tcg/cris/Makefile.target | 62 - tests/tcg/cris/README | 1 - tests/tcg/cris/bare/check_addcv17.s | 65 - tests/tcg/cris/bare/check_addi.s | 57 - tests/tcg/cris/bare/check_addiv32.s | 62 - tests/tcg/cris/bare/check_addm.s | 96 - tests/tcg/cris/bare/check_addq.s | 47 - tests/tcg/cris/bare/check_addr.s | 96 - tests/tcg/cris/bare/check_addxc.s | 91 - tests/tcg/cris/bare/check_addxm.s | 106 - tests/tcg/cris/bare/check_addxr.s | 96 - tests/tcg/cris/bare/check_andc.s | 80 - tests/tcg/cris/bare/check_andm.s | 90 - tests/tcg/cris/bare/check_andq.s | 46 - tests/tcg/cris/bare/check_andr.s | 95 - tests/tcg/cris/bare/check_asr.s | 230 -- tests/tcg/cris/bare/check_ba.s | 93 - tests/tcg/cris/bare/check_bas.s | 102 - tests/tcg/cris/bare/check_bcc.s | 197 - tests/tcg/cris/bare/check_boundc.s | 101 - tests/tcg/cris/bare/check_boundr.s | 125 - tests/tcg/cris/bare/check_btst.s | 96 - tests/tcg/cris/bare/check_clearfv32.s | 19 - tests/tcg/cris/bare/check_clrjmp1.s | 36 - tests/tcg/cris/bare/check_cmp-2.s | 15 - tests/tcg/cris/bare/check_cmpc.s | 86 - tests/tcg/cris/bare/check_cmpm.s | 96 - tests/tcg/cris/bare/check_cmpq.s | 75 - tests/tcg/cris/bare/check_cmpr.s | 102 - tests/tcg/cris/bare/check_cmpxc.s | 92 - tests/tcg/cris/bare/check_cmpxm.s | 106 - tests/tcg/cris/bare/check_dstep.s | 42 - tests/tcg/cris/bare/check_jsr.s | 85 - tests/tcg/cris/bare/check_lapc.s | 78 - tests/tcg/cris/bare/check_lsl.s | 217 -- tests/tcg/cris/bare/check_lsr.s | 218 -- tests/tcg/cris/bare/check_mcp.s | 49 - tests/tcg/cris/bare/check_movdelsr1.s | 33 - tests/tcg/cris/bare/check_movecr.s | 37 - tests/tcg/cris/bare/check_movei.s | 50 - tests/tcg/cris/bare/check_movemr.s | 78 - tests/tcg/cris/bare/check_movemrv32.s | 96 - tests/tcg/cris/bare/check_mover.s | 28 - tests/tcg/cris/bare/check_moverm.s | 45 - tests/tcg/cris/bare/check_movmp.s | 131 - tests/tcg/cris/bare/check_movpmv32.s | 35 - tests/tcg/cris/bare/check_movpr.s | 28 - tests/tcg/cris/bare/check_movprv32.s | 21 - tests/tcg/cris/bare/check_movscr.s | 29 - tests/tcg/cris/bare/check_movsm.s | 44 - tests/tcg/cris/bare/check_movsr.s | 46 - tests/tcg/cris/bare/check_movucr.s | 33 - tests/tcg/cris/bare/check_movum.s | 40 - tests/tcg/cris/bare/check_movur.s | 45 - tests/tcg/cris/bare/check_mulv32.s | 51 - tests/tcg/cris/bare/check_mulx.s | 257 -- tests/tcg/cris/bare/check_neg.s | 104 - tests/tcg/cris/bare/check_not.s | 31 - tests/tcg/cris/bare/check_orc.s | 71 - tests/tcg/cris/bare/check_orm.s | 75 - tests/tcg/cris/bare/check_orq.s | 41 - tests/tcg/cris/bare/check_orr.s | 84 - tests/tcg/cris/bare/check_ret.s | 25 - tests/tcg/cris/bare/check_scc.s | 95 - tests/tcg/cris/bare/check_subc.s | 87 - tests/tcg/cris/bare/check_subm.s | 96 - tests/tcg/cris/bare/check_subq.s | 52 - tests/tcg/cris/bare/check_subr.s | 102 - tests/tcg/cris/bare/check_xarith.s | 72 - tests/tcg/cris/bare/crt.s | 13 - tests/tcg/cris/bare/testutils.inc | 117 - 192 files changed, 18 insertions(+), 21324 deletions(-) delete mode 100644 configs/devices/cris-softmmu/default.mak delete mode 100644 configs/targets/cris-linux-user.mak delete mode 100644 configs/targets/cris-softmmu.mak delete mode 100644 hw/cris/boot.h delete mode 100644 include/hw/cris/etraxfs.h delete mode 100644 include/hw/cris/etraxfs_dma.h delete mode 100644 linux-user/cris/sockbits.h delete mode 100644 linux-user/cris/syscall_nr.h delete mode 100644 linux-user/cris/target_cpu.h delete mode 100644 linux-user/cris/target_elf.h delete mode 100644 linux-user/cris/target_errno_defs.h delete mode 100644 linux-user/cris/target_fcntl.h delete mode 100644 linux-user/cris/target_mman.h delete mode 100644 linux-user/cris/target_prctl.h delete mode 100644 linux-user/cris/target_proc.h delete mode 100644 linux-user/cris/target_resource.h delete mode 100644 linux-user/cris/target_signal.h delete mode 100644 linux-user/cris/target_structs.h delete mode 100644 linux-user/cris/target_syscall.h delete mode 100644 linux-user/cris/termbits.h delete mode 100644 target/cris/cpu-param.h delete mode 100644 target/cris/cpu-qom.h delete mode 100644 target/cris/cpu.h delete mode 100644 target/cris/crisv10-decode.h delete mode 100644 target/cris/crisv32-decode.h delete mode 100644 target/cris/helper.h delete mode 100644 target/cris/mmu.h delete mode 100644 target/cris/opcode-cris.h delete mode 100644 tests/tcg/cris/libc/crisutils.h delete mode 100644 tests/tcg/cris/libc/sys.h delete mode 100644 disas/cris.c delete mode 100644 hw/char/etraxfs_ser.c delete mode 100644 hw/cris/axis_dev88.c delete mode 100644 hw/cris/boot.c delete mode 100644 hw/dma/etraxfs_dma.c delete mode 100644 hw/intc/etraxfs_pic.c delete mode 100644 hw/net/etraxfs_eth.c delete mode 100644 hw/timer/etraxfs_timer.c delete mode 100644 linux-user/cris/cpu_loop.c delete mode 100644 linux-user/cris/signal.c delete mode 100644 target/cris/cpu.c delete mode 100644 target/cris/gdbstub.c delete mode 100644 target/cris/helper.c delete mode 100644 target/cris/machine.c delete mode 100644 target/cris/mmu.c delete mode 100644 target/cris/op_helper.c delete mode 100644 target/cris/translate.c delete mode 100644 tests/tcg/cris/bare/sys.c delete mode 100644 tests/tcg/cris/libc/check_abs.c delete mode 100644 tests/tcg/cris/libc/check_addc.c delete mode 100644 tests/tcg/cris/libc/check_addcm.c delete mode 100644 tests/tcg/cris/libc/check_addo.c delete mode 100644 tests/tcg/cris/libc/check_addoq.c delete mode 100644 tests/tcg/cris/libc/check_bound.c delete mode 100644 tests/tcg/cris/libc/check_ftag.c delete mode 100644 tests/tcg/cris/libc/check_gcctorture_pr28634-1.c delete mode 100644 tests/tcg/cris/libc/check_gcctorture_pr28634.c delete mode 100644 tests/tcg/cris/libc/check_glibc_kernelversion.c delete mode 100644 tests/tcg/cris/libc/check_hello.c delete mode 100644 tests/tcg/cris/libc/check_int64.c delete mode 100644 tests/tcg/cris/libc/check_lz.c delete mode 100644 tests/tcg/cris/libc/check_mapbrk.c delete mode 100644 tests/tcg/cris/libc/check_mmap1.c delete mode 100644 tests/tcg/cris/libc/check_mmap2.c delete mode 100644 tests/tcg/cris/libc/check_mmap3.c delete mode 100644 tests/tcg/cris/libc/check_moveq.c delete mode 100644 tests/tcg/cris/libc/check_openpf1.c delete mode 100644 tests/tcg/cris/libc/check_openpf2.c delete mode 100644 tests/tcg/cris/libc/check_openpf3.c delete mode 100644 tests/tcg/cris/libc/check_openpf5.c delete mode 100644 tests/tcg/cris/libc/check_settls1.c delete mode 100644 tests/tcg/cris/libc/check_sigalrm.c delete mode 100644 tests/tcg/cris/libc/check_stat1.c delete mode 100644 tests/tcg/cris/libc/check_stat2.c delete mode 100644 tests/tcg/cris/libc/check_stat3.c delete mode 100644 tests/tcg/cris/libc/check_stat4.c delete mode 100644 tests/tcg/cris/libc/check_swap.c delete mode 100644 tests/tcg/cris/libc/check_time2.c delete mode 100644 target/cris/translate_v10.c.inc delete mode 100644 hw/cris/Kconfig delete mode 100644 hw/cris/meson.build delete mode 100644 target/cris/Kconfig delete mode 100644 target/cris/meson.build delete mode 100644 tests/docker/dockerfiles/fedora-cris-cross.docker delete mode 100644 tests/tcg/cris/.gdbinit delete mode 100644 tests/tcg/cris/Makefile.target delete mode 100644 tests/tcg/cris/README delete mode 100644 tests/tcg/cris/bare/check_addcv17.s delete mode 100644 tests/tcg/cris/bare/check_addi.s delete mode 100644 tests/tcg/cris/bare/check_addiv32.s delete mode 100644 tests/tcg/cris/bare/check_addm.s delete mode 100644 tests/tcg/cris/bare/check_addq.s delete mode 100644 tests/tcg/cris/bare/check_addr.s delete mode 100644 tests/tcg/cris/bare/check_addxc.s delete mode 100644 tests/tcg/cris/bare/check_addxm.s delete mode 100644 tests/tcg/cris/bare/check_addxr.s delete mode 100644 tests/tcg/cris/bare/check_andc.s delete mode 100644 tests/tcg/cris/bare/check_andm.s delete mode 100644 tests/tcg/cris/bare/check_andq.s delete mode 100644 tests/tcg/cris/bare/check_andr.s delete mode 100644 tests/tcg/cris/bare/check_asr.s delete mode 100644 tests/tcg/cris/bare/check_ba.s delete mode 100644 tests/tcg/cris/bare/check_bas.s delete mode 100644 tests/tcg/cris/bare/check_bcc.s delete mode 100644 tests/tcg/cris/bare/check_boundc.s delete mode 100644 tests/tcg/cris/bare/check_boundr.s delete mode 100644 tests/tcg/cris/bare/check_btst.s delete mode 100644 tests/tcg/cris/bare/check_clearfv32.s delete mode 100644 tests/tcg/cris/bare/check_clrjmp1.s delete mode 100644 tests/tcg/cris/bare/check_cmp-2.s delete mode 100644 tests/tcg/cris/bare/check_cmpc.s delete mode 100644 tests/tcg/cris/bare/check_cmpm.s delete mode 100644 tests/tcg/cris/bare/check_cmpq.s delete mode 100644 tests/tcg/cris/bare/check_cmpr.s delete mode 100644 tests/tcg/cris/bare/check_cmpxc.s delete mode 100644 tests/tcg/cris/bare/check_cmpxm.s delete mode 100644 tests/tcg/cris/bare/check_dstep.s delete mode 100644 tests/tcg/cris/bare/check_jsr.s delete mode 100644 tests/tcg/cris/bare/check_lapc.s delete mode 100644 tests/tcg/cris/bare/check_lsl.s delete mode 100644 tests/tcg/cris/bare/check_lsr.s delete mode 100644 tests/tcg/cris/bare/check_mcp.s delete mode 100644 tests/tcg/cris/bare/check_movdelsr1.s delete mode 100644 tests/tcg/cris/bare/check_movecr.s delete mode 100644 tests/tcg/cris/bare/check_movei.s delete mode 100644 tests/tcg/cris/bare/check_movemr.s delete mode 100644 tests/tcg/cris/bare/check_movemrv32.s delete mode 100644 tests/tcg/cris/bare/check_mover.s delete mode 100644 tests/tcg/cris/bare/check_moverm.s delete mode 100644 tests/tcg/cris/bare/check_movmp.s delete mode 100644 tests/tcg/cris/bare/check_movpmv32.s delete mode 100644 tests/tcg/cris/bare/check_movpr.s delete mode 100644 tests/tcg/cris/bare/check_movprv32.s delete mode 100644 tests/tcg/cris/bare/check_movscr.s delete mode 100644 tests/tcg/cris/bare/check_movsm.s delete mode 100644 tests/tcg/cris/bare/check_movsr.s delete mode 100644 tests/tcg/cris/bare/check_movucr.s delete mode 100644 tests/tcg/cris/bare/check_movum.s delete mode 100644 tests/tcg/cris/bare/check_movur.s delete mode 100644 tests/tcg/cris/bare/check_mulv32.s delete mode 100644 tests/tcg/cris/bare/check_mulx.s delete mode 100644 tests/tcg/cris/bare/check_neg.s delete mode 100644 tests/tcg/cris/bare/check_not.s delete mode 100644 tests/tcg/cris/bare/check_orc.s delete mode 100644 tests/tcg/cris/bare/check_orm.s delete mode 100644 tests/tcg/cris/bare/check_orq.s delete mode 100644 tests/tcg/cris/bare/check_orr.s delete mode 100644 tests/tcg/cris/bare/check_ret.s delete mode 100644 tests/tcg/cris/bare/check_scc.s delete mode 100644 tests/tcg/cris/bare/check_subc.s delete mode 100644 tests/tcg/cris/bare/check_subm.s delete mode 100644 tests/tcg/cris/bare/check_subq.s delete mode 100644 tests/tcg/cris/bare/check_subr.s delete mode 100644 tests/tcg/cris/bare/check_xarith.s delete mode 100644 tests/tcg/cris/bare/crt.s delete mode 100644 tests/tcg/cris/bare/testutils.inc
Signature · 1 line
2.45.2
PATCH v2 1/15 tests/tcg: Remove CRIS libc test files
We never compiled / ran these tests.
--- tests/tcg/cris/libc/crisutils.h | 76 ---------- tests/tcg/cris/libc/sys.h | 18 --- tests/tcg/cris/libc/check_abs.c | 40 ----- tests/tcg/cris/libc/check_addc.c | 58 ------- tests/tcg/cris/libc/check_addcm.c | 85 ----------- tests/tcg/cris/libc/check_addo.c | 125 --------------- tests/tcg/cris/libc/check_addoq.c | 44 ------ tests/tcg/cris/libc/check_bound.c | 142 ------------------ tests/tcg/cris/libc/check_ftag.c | 37 ----- .../cris/libc/check_gcctorture_pr28634-1.c | 15 -- .../tcg/cris/libc/check_gcctorture_pr28634.c | 15 -- .../tcg/cris/libc/check_glibc_kernelversion.c | 116 -------------- tests/tcg/cris/libc/check_hello.c | 7 - tests/tcg/cris/libc/check_int64.c | 47 ------ tests/tcg/cris/libc/check_lz.c | 49 ------ tests/tcg/cris/libc/check_mapbrk.c | 39 ----- tests/tcg/cris/libc/check_mmap1.c | 48 ------ tests/tcg/cris/libc/check_mmap2.c | 48 ------ tests/tcg/cris/libc/check_mmap3.c | 33 ---- tests/tcg/cris/libc/check_moveq.c | 51 ------- tests/tcg/cris/libc/check_openpf1.c | 38 ----- tests/tcg/cris/libc/check_openpf2.c | 16 -- tests/tcg/cris/libc/check_openpf3.c | 49 ------ tests/tcg/cris/libc/check_openpf5.c | 56 ------- tests/tcg/cris/libc/check_settls1.c | 45 ------ tests/tcg/cris/libc/check_sigalrm.c | 26 ---- tests/tcg/cris/libc/check_stat1.c | 16 -- tests/tcg/cris/libc/check_stat2.c | 20 --- tests/tcg/cris/libc/check_stat3.c | 25 --- tests/tcg/cris/libc/check_stat4.c | 27 ---- tests/tcg/cris/libc/check_swap.c | 76 ---------- tests/tcg/cris/libc/check_time2.c | 18 --- 32 files changed, 1505 deletions(-) delete mode 100644 tests/tcg/cris/libc/crisutils.h delete mode 100644 tests/tcg/cris/libc/sys.h delete mode 100644 tests/tcg/cris/libc/check_abs.c delete mode 100644 tests/tcg/cris/libc/check_addc.c delete mode 100644 tests/tcg/cris/libc/check_addcm.c delete mode 100644 tests/tcg/cris/libc/check_addo.c delete mode 100644 tests/tcg/cris/libc/check_addoq.c delete mode 100644 tests/tcg/cris/libc/check_bound.c delete mode 100644 tests/tcg/cris/libc/check_ftag.c delete mode 100644 tests/tcg/cris/libc/check_gcctorture_pr28634-1.c delete mode 100644 tests/tcg/cris/libc/check_gcctorture_pr28634.c delete mode 100644 tests/tcg/cris/libc/check_glibc_kernelversion.c delete mode 100644 tests/tcg/cris/libc/check_hello.c delete mode 100644 tests/tcg/cris/libc/check_int64.c delete mode 100644 tests/tcg/cris/libc/check_lz.c delete mode 100644 tests/tcg/cris/libc/check_mapbrk.c delete mode 100644 tests/tcg/cris/libc/check_mmap1.c delete mode 100644 tests/tcg/cris/libc/check_mmap2.c delete mode 100644 tests/tcg/cris/libc/check_mmap3.c delete mode 100644 tests/tcg/cris/libc/check_moveq.c delete mode 100644 tests/tcg/cris/libc/check_openpf1.c delete mode 100644 tests/tcg/cris/libc/check_openpf2.c delete mode 100644 tests/tcg/cris/libc/check_openpf3.c delete mode 100644 tests/tcg/cris/libc/check_openpf5.c delete mode 100644 tests/tcg/cris/libc/check_settls1.c delete mode 100644 tests/tcg/cris/libc/check_sigalrm.c delete mode 100644 tests/tcg/cris/libc/check_stat1.c delete mode 100644 tests/tcg/cris/libc/check_stat2.c delete mode 100644 tests/tcg/cris/libc/check_stat3.c delete mode 100644 tests/tcg/cris/libc/check_stat4.c delete mode 100644 tests/tcg/cris/libc/check_swap.c delete mode 100644 tests/tcg/cris/libc/check_time2.c
tests/tcg/cris/libc/crisutils.h deleted +0 -76
@@ -1,76 +0,0 @@ -#ifndef CRISUTILS_H -#define CRISUTILS_H 1 - -static char *tst_cc_loc =NULL ; - -#define cris_tst_cc_init () \ -do { tst_cc_loc = "test_cc failed at " CURRENT_LOCATION; } while(0) - -/* We need a real symbol to signal error. */ -void _err (void ) { -if (!tst_cc_loc) - tst_cc_loc ="tst_cc_failed\n" ; -_fail (tst_cc_loc); -} - -static always_inline void cris_tst_cc_n1(void) -{ - asmvolatile ("bpl _err\n" -"nop\n" ); -} -static always_inline void cris_tst_cc_n0(void) -{ - asmvolatile ("bmi _err\n" -"nop\n" ); -} - -static always_inline void cris_tst_cc_z1(void) -{ - asmvolatile ("bne _err\n" -"nop\n" ); -} -static always_inline void cris_tst_cc_z0(void) -{ - asmvolatile ("beq _err\n" -"nop\n" ); -} -static always_inline void cris_tst_cc_v1(void) -{ - asmvolatile ("bvc _err\n" -"nop\n" ); -} -static always_inline void cris_tst_cc_v0(void) -{ - asmvolatile ("bvs _err\n" -"nop\n" ); -} - -static always_inline void cris_tst_cc_c1(void) -{ - asmvolatile ("bcc _err\n" -"nop\n" ); -} -static always_inline void cris_tst_cc_c0(void) -{ - asmvolatile ("bcs _err\n" -"nop\n" ); -} - -static always_inline void cris_tst_mov_cc(int n, int z) -{ -if (n)cris_tst_cc_n1 ();else cris_tst_cc_n0 (); -if (z)cris_tst_cc_z1 ();else cris_tst_cc_z0 (); - asmvolatile ("" : :"g" (_err)); -} - -static always_inline void cris_tst_cc(const int n, const int z, -const int v,const int c) -{ -if (n)cris_tst_cc_n1 ();else cris_tst_cc_n0 (); -if (z)cris_tst_cc_z1 ();else cris_tst_cc_z0 (); -if (v)cris_tst_cc_v1 ();else cris_tst_cc_v0 (); -if (c)cris_tst_cc_c1 ();else cris_tst_cc_c0 (); - asmvolatile ("" : :"g" (_err)); -} - -#endif
tests/tcg/cris/libc/sys.h deleted +0 -18
@@ -1,18 +0,0 @@ -#include <unistd.h> - -#define STRINGIFY (x) #x -#define TOSTRING (x) STRINGIFY(x) - -#define always_inline inline __attribute__((always_inline)) - -#define CURRENT_LOCATION __FILE__ ":" TOSTRING(__LINE__) - -#define err () \ -{ \ - _fail("at " CURRENT_LOCATION " "); \ -} - -#define mb () asm volatile ("" : : : "memory") - -void pass (void ); -void _fail (char *reason);
tests/tcg/cris/libc/check_abs.c deleted +0 -40
@@ -1,40 +0,0 @@ -#include <stdio.h> -#include <stdlib.h> -#include <stdint.h> -#include "sys.h" -#include "crisutils.h" - -static always_inline int cris_abs(int n) -{ -int r; - asm ("abs\t%1, %0\n" :"=r" (r) :"r" (n)); -return r; -} - -static always_inline void -verify_abs (int val,int res, -const int n,const int z,const int v,const int c) -{ -int r; - -cris_tst_cc_init (); - r =cris_abs (val); -cris_tst_cc (n, z, v, c); -if (r != res) -err (); -} - -int main (void ) -{ -verify_abs (-1 ,1 ,0 ,0 ,0 ,0 ); -verify_abs (0x80000000 ,0x80000000 ,1 ,0 ,0 ,0 ); -verify_abs (0x7fffffff ,0x7fffffff ,0 ,0 ,0 ,0 ); -verify_abs (42 ,42 ,0 ,0 ,0 ,0 ); -verify_abs (1 ,1 ,0 ,0 ,0 ,0 ); -verify_abs (0xffff ,0xffff ,0 ,0 ,0 ,0 ); -verify_abs (0xffff ,0xffff ,0 ,0 ,0 ,0 ); -verify_abs (-31 ,0x1f ,0 ,0 ,0 ,0 ); -verify_abs (0 ,0 ,0 ,1 ,0 ,0 ); -pass (); -return 0 ; -}
tests/tcg/cris/libc/check_addc.c deleted +0 -58
58 lines not on this page · raw message
tests/tcg/cris/libc/check_addcm.c deleted +0 -85
85 lines not on this page · raw message
tests/tcg/cris/libc/check_addo.c deleted +0 -125
125 lines not on this page · raw message
tests/tcg/cris/libc/check_addoq.c deleted +0 -44
44 lines not on this page · raw message
tests/tcg/cris/libc/check_bound.c deleted +0 -142
142 lines not on this page · raw message
tests/tcg/cris/libc/check_ftag.c deleted +0 -37
@@ -1,37 +0,0 @@ -#include <stdio.h> -#include <stdlib.h> -#include <stdint.h> -#include "sys.h" -#include "crisutils.h" - -static always_inline void cris_ftag_i(unsigned int x) -{ - register unsigned int v asm("$r10") = x; - asm ("ftagi\t[%0]\n" : :"r" (v) ); -} -static always_inline void cris_ftag_d(unsigned int x) -{ - register unsigned int v asm("$r10") = x; - asm ("ftagd\t[%0]\n" : :"r" (v) ); -} -static always_inline void cris_fidx_i(unsigned int x) -{ - register unsigned int v asm("$r10") = x; - asm ("fidxi\t[%0]\n" : :"r" (v) ); -} -static always_inline void cris_fidx_d(unsigned int x) -{ - register unsigned int v asm("$r10") = x; - asm ("fidxd\t[%0]\n" : :"r" (v) ); -} - - -int main (void ) -{ -cris_ftag_i (0 ); -cris_ftag_d (0 ); -cris_fidx_i (0 ); -cris_fidx_d (0 ); -pass (); -return 0 ; -}
tests/tcg/cris/libc/check_gcctorture_pr28634-1.c deleted +0 -15
@@ -1,15 +0,0 @@ -/* PR rtl-optimization/28634. On targets with delayed branches, -dbr_schedule could do the next iteration's addition in the -branch delay slot, then subtract the value again if the branch -wasn't taken. This can lead to rounding errors. */ -int x =-1 ; -int y =1 ; -int -main (void ) -{ -while (y >0 ) - y += x; -if (y != x +1 ) -abort (); -exit (0 ); -}
tests/tcg/cris/libc/check_gcctorture_pr28634.c deleted +0 -15
@@ -1,15 +0,0 @@ -/* PR rtl-optimization/28634. On targets with delayed branches, -dbr_schedule could do the next iteration's addition in the -branch delay slot, then subtract the value again if the branch -wasn't taken. This can lead to rounding errors. */ -double x =-0x1.0p53 ; -double y =1 ; -int -main (void ) -{ -while (y >0 ) - y += x; -if (y != x +1 ) -abort (); -exit (0 ); -}
tests/tcg/cris/libc/check_glibc_kernelversion.c deleted +0 -116
116 lines not on this page · raw message
tests/tcg/cris/libc/check_hello.c deleted +0 -7
@@ -1,7 +0,0 @@ -#include <stdio.h> -#include <stdlib.h> -int main () -{ -printf ("pass\n" ); -exit (0 ); -}
tests/tcg/cris/libc/check_int64.c deleted +0 -47
47 lines not on this page · raw message
tests/tcg/cris/libc/check_lz.c deleted +0 -49
49 lines not on this page · raw message
tests/tcg/cris/libc/check_mapbrk.c deleted +0 -39
@@ -1,39 +0,0 @@ -#include <stdio.h> -#include <stdlib.h> - -/* Basic sanity check that syscalls to implement malloc (brk, mmap2, -munmap) are trivially functional. */ - -int main () -{ -void *p1, *p2, *p3, *p4, *p5, *p6; - -if ((p1 =malloc (8100 )) ==NULL - || (p2 =malloc (16300 )) ==NULL - || (p3 =malloc (4000 )) ==NULL - || (p4 =malloc (500 )) ==NULL - || (p5 =malloc (1023 *1024 )) ==NULL - || (p6 =malloc (8191 *1024 )) ==NULL ) - { -printf ("fail\n" ); -exit (1 ); - } - -free (p1); -free (p2); -free (p3); -free (p4); -free (p5); -free (p6); - - p1 =malloc (64000 ); -if (p1 ==NULL ) - { -printf ("fail\n" ); -exit (1 ); - } -free (p1); - -printf ("pass\n" ); -exit (0 ); -}
tests/tcg/cris/libc/check_mmap1.c deleted +0 -48
48 lines not on this page · raw message
tests/tcg/cris/libc/check_mmap2.c deleted +0 -48
48 lines not on this page · raw message
tests/tcg/cris/libc/check_mmap3.c deleted +0 -33
@@ -1,33 +0,0 @@ -/* -#notarget: cris*-*-elf -*/ - -#define _GNU_SOURCE -#include <string.h> -#include <stdlib.h> -#include <stdio.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <unistd.h> -#include <sys/mman.h> - -int main (int argc,char *argv[]) -{ -volatile unsigned char *a; - -/* Check that we can map a non-multiple of a page and still get a full page. */ - a =mmap (NULL ,0x4c ,PROT_READ |PROT_WRITE |PROT_EXEC , -MAP_PRIVATE |MAP_ANONYMOUS ,-1 ,0 ); -if (a ==NULL || a == (unsigned char *)-1 ) -abort (); - - a[0 ] =0xbe ; - a[8191 ] =0xef ; -memset ((char *) a +1 ,0 ,8190 ); - -if (a[0 ] !=0xbe || a[8191 ] !=0xef ) -abort (); - -printf ("pass\n" ); -exit (0 ); -}
tests/tcg/cris/libc/check_moveq.c deleted +0 -51
51 lines not on this page · raw message
tests/tcg/cris/libc/check_openpf1.c deleted +0 -38
@@ -1,38 +0,0 @@ -/* Check that --sysroot is applied to open(2). -#sim: --sysroot=@exedir@ - -We assume, with EXE being the name of the executable: -- The simulator executes with cwd the same directory where the executable -is located (so argv[0] contains a plain filename without directory -components). -- There's no /EXE on the host file system. */ - -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <errno.h> -int main (int argc,char *argv[]) -{ -char *fnam = argv[0 ]; -FILE *f; -if (argv[0 ][0 ] !='/' ) - { - fnam =malloc (strlen (argv[0 ]) +2 ); -if (fnam ==NULL ) -abort (); -strcpy (fnam,"/" ); -strcat (fnam, argv[0 ]); - } - - f =fopen (fnam,"rb" ); -if (f ==NULL ) -abort (); -fclose (f); - -/* Cover another execution path. */ -if (fopen ("/nonexistent" ,"rb" ) !=NULL - || errno !=ENOENT ) -abort (); -printf ("pass\n" ); -return 0 ; -}
tests/tcg/cris/libc/check_openpf2.c deleted +0 -16
@@ -1,16 +0,0 @@ -/* Check that the simulator has chdir:ed to the --sysroot argument -#sim: --sysroot=@srcdir@ -(or that --sysroot is applied to relative file paths). */ - -#include <stdio.h> -#include <stdlib.h> -#include <errno.h> -int main (int argc,char *argv[]) -{ -FILE *f =fopen ("check_openpf2.c" ,"rb" ); -if (f ==NULL ) -abort (); -fclose (f); -printf ("pass\n" ); -return 0 ; -}
tests/tcg/cris/libc/check_openpf3.c deleted +0 -49
49 lines not on this page · raw message
tests/tcg/cris/libc/check_openpf5.c deleted +0 -56
56 lines not on this page · raw message
tests/tcg/cris/libc/check_settls1.c deleted +0 -45
45 lines not on this page · raw message
tests/tcg/cris/libc/check_sigalrm.c deleted +0 -26
@@ -1,26 +0,0 @@ -#include <stdio.h> -#include <stdlib.h> -#include <signal.h> -#include <unistd.h> - -#define MAGIC (0xdeadbeef) - -int s =0 ; -void sighandler (int sig) -{ - s =MAGIC ; -} - -int main (int argc,char **argv) -{ -int p; - - p =getpid (); -signal (SIGALRM , sighandler); -kill (p,SIGALRM ); -if (s !=MAGIC ) -return EXIT_FAILURE ; - -printf ("passed\n" ); -return EXIT_SUCCESS ; -}
tests/tcg/cris/libc/check_stat1.c deleted +0 -16
@@ -1,16 +0,0 @@ -#include <sys/types.h> -#include <sys/stat.h> -#include <unistd.h> -#include <stdio.h> -#include <stdlib.h> - -int main (void ) -{ -struct stat buf; - -if (stat ("." , &buf) !=0 - || !S_ISDIR (buf.st_mode)) -abort (); -printf ("pass\n" ); -exit (0 ); -}
tests/tcg/cris/libc/check_stat2.c deleted +0 -20
@@ -1,20 +0,0 @@ -/* -#notarget: cris*-*-elf -*/ - -#include <sys/types.h> -#include <sys/stat.h> -#include <unistd.h> -#include <stdio.h> -#include <stdlib.h> - -int main (void ) -{ -struct stat buf; - -if (lstat ("." , &buf) !=0 - || !S_ISDIR (buf.st_mode)) -abort (); -printf ("pass\n" ); -exit (0 ); -}
tests/tcg/cris/libc/check_stat3.c deleted +0 -25
@@ -1,25 +0,0 @@ -/* Simulator options: -#sim: --sysroot=@exedir@ -*/ -#include <sys/types.h> -#include <sys/stat.h> -#include <unistd.h> -#include <stdio.h> -#include <string.h> -#include <stdlib.h> - -int main (int argc,char *argv[]) -{ -char path[1024 ] ="/" ; -struct stat buf; - -strncat (path, argv[0 ],sizeof (path) -2 ); -if (stat ("." , &buf) !=0 - || !S_ISDIR (buf.st_mode)) -abort (); -if (stat (path, &buf) !=0 - || !S_ISREG (buf.st_mode)) -abort (); -printf ("pass\n" ); -exit (0 ); -}
tests/tcg/cris/libc/check_stat4.c deleted +0 -27
@@ -1,27 +0,0 @@ -/* Simulator options: -#notarget: cris*-*-elf -#sim: --sysroot=@exedir@ -*/ - -#include <sys/types.h> -#include <sys/stat.h> -#include <unistd.h> -#include <stdio.h> -#include <string.h> -#include <stdlib.h> - -int main (int argc,char *argv[]) -{ -char path[1024 ] ="/" ; -struct stat buf; - -strncat (path, argv[0 ],sizeof (path) -2 ); -if (lstat ("." , &buf) !=0 - || !S_ISDIR (buf.st_mode)) -abort (); -if (lstat (path, &buf) !=0 - || !S_ISREG (buf.st_mode)) -abort (); -printf ("pass\n" ); -exit (0 ); -}
tests/tcg/cris/libc/check_swap.c deleted +0 -76
76 lines not on this page · raw message
tests/tcg/cris/libc/check_time2.c deleted +0 -18
@@ -1,18 +0,0 @@ -/* CB_SYS_time doesn't implement the Linux time syscall; the return -value isn't written to the argument. */ - -#include <time.h> -#include <stdio.h> -#include <stdlib.h> - -int -main (void ) -{ -time_t x = (time_t) -1 ; -time_t t =time (&x); - -if (t == (time_t) -1 || t != x) -abort (); -printf ("pass\n" ); -exit (0 ); -}
Signature · 1 line
2.45.2
Re: [PATCH v2 01/15] tests/tcg: Remove CRIS libc test files
Quoted 4 lines · Philippe Mathieu-Daudé
We never compiled / ran these tests.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
PATCH v2 2/15 tests/tcg: Remove CRIS bare test files
In reply to Philippe Mathieu-DaudéWe are going to remove the CRIS target.
--- MAINTAINERS | 1 - tests/tcg/cris/bare/sys.c | 63 ------- scripts/probe-gdb-support.py | 1 - tests/tcg/cris/.gdbinit | 11 -- tests/tcg/cris/Makefile.target | 62 ------- tests/tcg/cris/README | 1 - tests/tcg/cris/bare/check_addcv17.s | 65 ------- tests/tcg/cris/bare/check_addi.s | 57 ------ tests/tcg/cris/bare/check_addiv32.s | 62 ------- tests/tcg/cris/bare/check_addm.s | 96 ---------- tests/tcg/cris/bare/check_addq.s | 47 ----- tests/tcg/cris/bare/check_addr.s | 96 ---------- tests/tcg/cris/bare/check_addxc.s | 91 --------- tests/tcg/cris/bare/check_addxm.s | 106 ----------- tests/tcg/cris/bare/check_addxr.s | 96 ---------- tests/tcg/cris/bare/check_andc.s | 80 -------- tests/tcg/cris/bare/check_andm.s | 90 --------- tests/tcg/cris/bare/check_andq.s | 46 ----- tests/tcg/cris/bare/check_andr.s | 95 ---------- tests/tcg/cris/bare/check_asr.s | 230 ----------------------- tests/tcg/cris/bare/check_ba.s | 93 ---------- tests/tcg/cris/bare/check_bas.s | 102 ---------- tests/tcg/cris/bare/check_bcc.s | 197 -------------------- tests/tcg/cris/bare/check_boundc.s | 101 ---------- tests/tcg/cris/bare/check_boundr.s | 125 ------------- tests/tcg/cris/bare/check_btst.s | 96 ---------- tests/tcg/cris/bare/check_clearfv32.s | 19 -- tests/tcg/cris/bare/check_clrjmp1.s | 36 ---- tests/tcg/cris/bare/check_cmp-2.s | 15 -- tests/tcg/cris/bare/check_cmpc.s | 86 --------- tests/tcg/cris/bare/check_cmpm.s | 96 ---------- tests/tcg/cris/bare/check_cmpq.s | 75 -------- tests/tcg/cris/bare/check_cmpr.s | 102 ---------- tests/tcg/cris/bare/check_cmpxc.s | 92 --------- tests/tcg/cris/bare/check_cmpxm.s | 106 ----------- tests/tcg/cris/bare/check_dstep.s | 42 ----- tests/tcg/cris/bare/check_jsr.s | 85 --------- tests/tcg/cris/bare/check_lapc.s | 78 -------- tests/tcg/cris/bare/check_lsl.s | 217 ---------------------- tests/tcg/cris/bare/check_lsr.s | 218 ---------------------- tests/tcg/cris/bare/check_mcp.s | 49 ----- tests/tcg/cris/bare/check_movdelsr1.s | 33 ---- tests/tcg/cris/bare/check_movecr.s | 37 ---- tests/tcg/cris/bare/check_movei.s | 50 ----- tests/tcg/cris/bare/check_movemr.s | 78 -------- tests/tcg/cris/bare/check_movemrv32.s | 96 ---------- tests/tcg/cris/bare/check_mover.s | 28 --- tests/tcg/cris/bare/check_moverm.s | 45 ----- tests/tcg/cris/bare/check_movmp.s | 131 ------------- tests/tcg/cris/bare/check_movpmv32.s | 35 ---- tests/tcg/cris/bare/check_movpr.s | 28 --- tests/tcg/cris/bare/check_movprv32.s | 21 --- tests/tcg/cris/bare/check_movscr.s | 29 --- tests/tcg/cris/bare/check_movsm.s | 44 ----- tests/tcg/cris/bare/check_movsr.s | 46 ----- tests/tcg/cris/bare/check_movucr.s | 33 ---- tests/tcg/cris/bare/check_movum.s | 40 ---- tests/tcg/cris/bare/check_movur.s | 45 ----- tests/tcg/cris/bare/check_mulv32.s | 51 ----- tests/tcg/cris/bare/check_mulx.s | 257 -------------------------- tests/tcg/cris/bare/check_neg.s | 104 ----------- tests/tcg/cris/bare/check_not.s | 31 ---- tests/tcg/cris/bare/check_orc.s | 71 ------- tests/tcg/cris/bare/check_orm.s | 75 -------- tests/tcg/cris/bare/check_orq.s | 41 ---- tests/tcg/cris/bare/check_orr.s | 84 --------- tests/tcg/cris/bare/check_ret.s | 25 --- tests/tcg/cris/bare/check_scc.s | 95 ---------- tests/tcg/cris/bare/check_subc.s | 87 --------- tests/tcg/cris/bare/check_subm.s | 96 ---------- tests/tcg/cris/bare/check_subq.s | 52 ------ tests/tcg/cris/bare/check_subr.s | 102 ---------- tests/tcg/cris/bare/check_xarith.s | 72 -------- tests/tcg/cris/bare/crt.s | 13 -- tests/tcg/cris/bare/testutils.inc | 117 ------------ 75 files changed, 5618 deletions(-) delete mode 100644 tests/tcg/cris/bare/sys.c delete mode 100644 tests/tcg/cris/.gdbinit delete mode 100644 tests/tcg/cris/Makefile.target delete mode 100644 tests/tcg/cris/README delete mode 100644 tests/tcg/cris/bare/check_addcv17.s delete mode 100644 tests/tcg/cris/bare/check_addi.s delete mode 100644 tests/tcg/cris/bare/check_addiv32.s delete mode 100644 tests/tcg/cris/bare/check_addm.s delete mode 100644 tests/tcg/cris/bare/check_addq.s delete mode 100644 tests/tcg/cris/bare/check_addr.s delete mode 100644 tests/tcg/cris/bare/check_addxc.s delete mode 100644 tests/tcg/cris/bare/check_addxm.s delete mode 100644 tests/tcg/cris/bare/check_addxr.s delete mode 100644 tests/tcg/cris/bare/check_andc.s delete mode 100644 tests/tcg/cris/bare/check_andm.s delete mode 100644 tests/tcg/cris/bare/check_andq.s delete mode 100644 tests/tcg/cris/bare/check_andr.s delete mode 100644 tests/tcg/cris/bare/check_asr.s delete mode 100644 tests/tcg/cris/bare/check_ba.s delete mode 100644 tests/tcg/cris/bare/check_bas.s delete mode 100644 tests/tcg/cris/bare/check_bcc.s delete mode 100644 tests/tcg/cris/bare/check_boundc.s delete mode 100644 tests/tcg/cris/bare/check_boundr.s delete mode 100644 tests/tcg/cris/bare/check_btst.s delete mode 100644 tests/tcg/cris/bare/check_clearfv32.s delete mode 100644 tests/tcg/cris/bare/check_clrjmp1.s delete mode 100644 tests/tcg/cris/bare/check_cmp-2.s delete mode 100644 tests/tcg/cris/bare/check_cmpc.s delete mode 100644 tests/tcg/cris/bare/check_cmpm.s delete mode 100644 tests/tcg/cris/bare/check_cmpq.s delete mode 100644 tests/tcg/cris/bare/check_cmpr.s delete mode 100644 tests/tcg/cris/bare/check_cmpxc.s delete mode 100644 tests/tcg/cris/bare/check_cmpxm.s delete mode 100644 tests/tcg/cris/bare/check_dstep.s delete mode 100644 tests/tcg/cris/bare/check_jsr.s delete mode 100644 tests/tcg/cris/bare/check_lapc.s delete mode 100644 tests/tcg/cris/bare/check_lsl.s delete mode 100644 tests/tcg/cris/bare/check_lsr.s delete mode 100644 tests/tcg/cris/bare/check_mcp.s delete mode 100644 tests/tcg/cris/bare/check_movdelsr1.s delete mode 100644 tests/tcg/cris/bare/check_movecr.s delete mode 100644 tests/tcg/cris/bare/check_movei.s delete mode 100644 tests/tcg/cris/bare/check_movemr.s delete mode 100644 tests/tcg/cris/bare/check_movemrv32.s delete mode 100644 tests/tcg/cris/bare/check_mover.s delete mode 100644 tests/tcg/cris/bare/check_moverm.s delete mode 100644 tests/tcg/cris/bare/check_movmp.s delete mode 100644 tests/tcg/cris/bare/check_movpmv32.s delete mode 100644 tests/tcg/cris/bare/check_movpr.s delete mode 100644 tests/tcg/cris/bare/check_movprv32.s delete mode 100644 tests/tcg/cris/bare/check_movscr.s delete mode 100644 tests/tcg/cris/bare/check_movsm.s delete mode 100644 tests/tcg/cris/bare/check_movsr.s delete mode 100644 tests/tcg/cris/bare/check_movucr.s delete mode 100644 tests/tcg/cris/bare/check_movum.s delete mode 100644 tests/tcg/cris/bare/check_movur.s delete mode 100644 tests/tcg/cris/bare/check_mulv32.s delete mode 100644 tests/tcg/cris/bare/check_mulx.s delete mode 100644 tests/tcg/cris/bare/check_neg.s delete mode 100644 tests/tcg/cris/bare/check_not.s delete mode 100644 tests/tcg/cris/bare/check_orc.s delete mode 100644 tests/tcg/cris/bare/check_orm.s delete mode 100644 tests/tcg/cris/bare/check_orq.s delete mode 100644 tests/tcg/cris/bare/check_orr.s delete mode 100644 tests/tcg/cris/bare/check_ret.s delete mode 100644 tests/tcg/cris/bare/check_scc.s delete mode 100644 tests/tcg/cris/bare/check_subc.s delete mode 100644 tests/tcg/cris/bare/check_subm.s delete mode 100644 tests/tcg/cris/bare/check_subq.s delete mode 100644 tests/tcg/cris/bare/check_subr.s delete mode 100644 tests/tcg/cris/bare/check_xarith.s delete mode 100644 tests/tcg/cris/bare/crt.s delete mode 100644 tests/tcg/cris/bare/testutils.inc
MAINTAINERS +0 -1
@@ -230,7 +230,6 @@ S: Maintained F: target/cris/ F: hw/cris/ F: include/hw/cris/ -F: tests/tcg/cris/ F: disas/cris.c Hexagon TCG CPUs
tests/tcg/cris/bare/sys.c deleted +0 -63
63 lines not on this page · raw message
scripts/probe-gdb-support.py +0 -1
@@ -28,7 +28,6 @@ "armv7": "arm", "armv8-a" : ["aarch64", "aarch64_be"], "avr" : "avr", - "cris" : "cris", # no hexagon in upstream gdb "hppa1.0" : "hppa", "i386" : "i386",
tests/tcg/cris/.gdbinit deleted +0 -11
@@ -1,11 +0,0 @@ -b main -b _fail -b exit -display /i $pc -display /x $srp -display /x $r0 -display /x $r1 -display /x $r2 -display /x $r3 -display /x $r4 -display /t $ccs
tests/tcg/cris/Makefile.target deleted +0 -62
62 lines not on this page · raw message
tests/tcg/cris/README deleted +0 -1
@@ -1 +0,0 @@ -Test-suite for the cris port. Heavily based on the test-suite for the CRIS port of sim by Hans-Peter Nilsson.
tests/tcg/cris/bare/check_addcv17.s deleted +0 -65
65 lines not on this page · raw message
tests/tcg/cris/bare/check_addi.s deleted +0 -57
57 lines not on this page · raw message
tests/tcg/cris/bare/check_addiv32.s deleted +0 -62
62 lines not on this page · raw message
tests/tcg/cris/bare/check_addm.s deleted +0 -96
96 lines not on this page · raw message
tests/tcg/cris/bare/check_addq.s deleted +0 -47
47 lines not on this page · raw message
tests/tcg/cris/bare/check_addr.s deleted +0 -96
96 lines not on this page · raw message
tests/tcg/cris/bare/check_addxc.s deleted +0 -91
91 lines not on this page · raw message
tests/tcg/cris/bare/check_addxm.s deleted +0 -106
106 lines not on this page · raw message
tests/tcg/cris/bare/check_addxr.s deleted +0 -96
96 lines not on this page · raw message
tests/tcg/cris/bare/check_andc.s deleted +0 -80
80 lines not on this page · raw message
tests/tcg/cris/bare/check_andm.s deleted +0 -90
90 lines not on this page · raw message
tests/tcg/cris/bare/check_andq.s deleted +0 -46
46 lines not on this page · raw message
tests/tcg/cris/bare/check_andr.s deleted +0 -95
95 lines not on this page · raw message
tests/tcg/cris/bare/check_asr.s deleted +0 -230
230 lines not on this page · raw message
tests/tcg/cris/bare/check_ba.s deleted +0 -93
93 lines not on this page · raw message
tests/tcg/cris/bare/check_bas.s deleted +0 -102
102 lines not on this page · raw message
tests/tcg/cris/bare/check_bcc.s deleted +0 -197
197 lines not on this page · raw message
tests/tcg/cris/bare/check_boundc.s deleted +0 -101
101 lines not on this page · raw message
tests/tcg/cris/bare/check_boundr.s deleted +0 -125
125 lines not on this page · raw message
tests/tcg/cris/bare/check_btst.s deleted +0 -96
96 lines not on this page · raw message
tests/tcg/cris/bare/check_clearfv32.s deleted +0 -19
@@ -1,19 +0,0 @@ -# mach: crisv32 -# output: ef\nef\n - -; Check that "clearf x" doesn't trivially fail. - - .include "testutils.inc" - start - setf puixnzvc - clearf x ; Actually, x would be cleared by almost-all other insns. - move ccs,r3 - and.d 0xff, $r3 - checkr3 ef - - setf puixnzvc - moveq 0, $r3 ; moveq should only clear the xflag. - move ccs,r3 - and.d 0xff, $r3 - checkr3 ef - quit
tests/tcg/cris/bare/check_clrjmp1.s deleted +0 -36
@@ -1,36 +0,0 @@ -# mach: crisv3 crisv8 crisv10 crisv32 -# output: ffffff00\n - -; A bug resulting in a non-effectual clear.b discovered running the GCC -; testsuite; jump actually wrote to p0. - - .include "testutils.inc" - - start - jump 1f - nop - .p2align 8 -1: - move.d y,r4 - - .if 0 ;0 == ..asm.arch.cris.v32 -; There was a bug causing this insn to set special register p0 -; (byte-clear) to 8 (low 8 bits of location after insn). - jump [r4+] - .endif - -1: - move.d 0f,r4 - -; The corresponding bug would cause this insn too, to set p0. - jump r4 - nop - quit -0: - moveq -1,r3 - clear.b r3 - checkr3 ffffff00 - quit - -y: - .dword 1b
tests/tcg/cris/bare/check_cmp-2.s deleted +0 -15
@@ -1,15 +0,0 @@ - - -.include "testutils.inc" - - start - - move.d 4294967283, $r0 - move.d $r0, $r10 - cmp.d $r0, $r10 - beq 1f - move.d $r10, $r3 - fail -1: - pass - quit
tests/tcg/cris/bare/check_cmpc.s deleted +0 -86
86 lines not on this page · raw message
tests/tcg/cris/bare/check_cmpm.s deleted +0 -96
96 lines not on this page · raw message
tests/tcg/cris/bare/check_cmpq.s deleted +0 -75
75 lines not on this page · raw message
tests/tcg/cris/bare/check_cmpr.s deleted +0 -102
102 lines not on this page · raw message
tests/tcg/cris/bare/check_cmpxc.s deleted +0 -92
92 lines not on this page · raw message
tests/tcg/cris/bare/check_cmpxm.s deleted +0 -106
106 lines not on this page · raw message
tests/tcg/cris/bare/check_dstep.s deleted +0 -42
42 lines not on this page · raw message
tests/tcg/cris/bare/check_jsr.s deleted +0 -85
85 lines not on this page · raw message
tests/tcg/cris/bare/check_lapc.s deleted +0 -78
78 lines not on this page · raw message
tests/tcg/cris/bare/check_lsl.s deleted +0 -217
46 lines not on this page · raw message
tests/tcg/cris/bare/check_lsr.s deleted +0 -218
218 lines not on this page · raw message
tests/tcg/cris/bare/check_mcp.s deleted +0 -49
49 lines not on this page · raw message
tests/tcg/cris/bare/check_movdelsr1.s deleted +0 -33
Lines of this file are not shown. View the raw message.
tests/tcg/cris/bare/check_movecr.s deleted +0 -37
Lines of this file are not shown. View the raw message.
tests/tcg/cris/bare/check_movei.s deleted +0 -50
50 lines not on this page · raw message
tests/tcg/cris/bare/check_movemr.s deleted +0 -78
78 lines not on this page · raw message
tests/tcg/cris/bare/check_movemrv32.s deleted +0 -96
96 lines not on this page · raw message
tests/tcg/cris/bare/check_mover.s deleted +0 -28
Lines of this file are not shown. View the raw message.
tests/tcg/cris/bare/check_moverm.s deleted +0 -45
45 lines not on this page · raw message
tests/tcg/cris/bare/check_movmp.s deleted +0 -131
131 lines not on this page · raw message
tests/tcg/cris/bare/check_movpmv32.s deleted +0 -35
Lines of this file are not shown. View the raw message.
tests/tcg/cris/bare/check_movpr.s deleted +0 -28
Lines of this file are not shown. View the raw message.
tests/tcg/cris/bare/check_movprv32.s deleted +0 -21
Lines of this file are not shown. View the raw message.
tests/tcg/cris/bare/check_movscr.s deleted +0 -29
Lines of this file are not shown. View the raw message.
tests/tcg/cris/bare/check_movsm.s deleted +0 -44
44 lines not on this page · raw message
tests/tcg/cris/bare/check_movsr.s deleted +0 -46
46 lines not on this page · raw message
tests/tcg/cris/bare/check_movucr.s deleted +0 -33
Lines of this file are not shown. View the raw message.
tests/tcg/cris/bare/check_movum.s deleted +0 -40
Lines of this file are not shown. View the raw message.
tests/tcg/cris/bare/check_movur.s deleted +0 -45
45 lines not on this page · raw message
tests/tcg/cris/bare/check_mulv32.s deleted +0 -51
51 lines not on this page · raw message
tests/tcg/cris/bare/check_mulx.s deleted +0 -257
257 lines not on this page · raw message
tests/tcg/cris/bare/check_neg.s deleted +0 -104
104 lines not on this page · raw message
tests/tcg/cris/bare/check_not.s deleted +0 -31
Lines of this file are not shown. View the raw message.
tests/tcg/cris/bare/check_orc.s deleted +0 -71
71 lines not on this page · raw message
tests/tcg/cris/bare/check_orm.s deleted +0 -75
75 lines not on this page · raw message
tests/tcg/cris/bare/check_orq.s deleted +0 -41
41 lines not on this page · raw message
tests/tcg/cris/bare/check_orr.s deleted +0 -84
84 lines not on this page · raw message
tests/tcg/cris/bare/check_ret.s deleted +0 -25
Lines of this file are not shown. View the raw message.
tests/tcg/cris/bare/check_scc.s deleted +0 -95
95 lines not on this page · raw message
tests/tcg/cris/bare/check_subc.s deleted +0 -87
87 lines not on this page · raw message
tests/tcg/cris/bare/check_subm.s deleted +0 -96
96 lines not on this page · raw message
tests/tcg/cris/bare/check_subq.s deleted +0 -52
52 lines not on this page · raw message
tests/tcg/cris/bare/check_subr.s deleted +0 -102
102 lines not on this page · raw message
tests/tcg/cris/bare/check_xarith.s deleted +0 -72
72 lines not on this page · raw message
tests/tcg/cris/bare/testutils.inc deleted +0 -117
117 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.45.2
Part of the diff is not shown here. View the raw message.
Re: [PATCH v2 02/15] tests/tcg: Remove CRIS bare test files
Quoted 72 lines · Philippe Mathieu-Daudé
We are going to remove the CRIS target.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- MAINTAINERS | 1 - tests/tcg/cris/bare/sys.c | 63 ------- scripts/probe-gdb-support.py | 1 - tests/tcg/cris/.gdbinit | 11 -- tests/tcg/cris/Makefile.target | 62 ------- tests/tcg/cris/README | 1 - tests/tcg/cris/bare/check_addcv17.s | 65 ------- tests/tcg/cris/bare/check_addi.s | 57 ------ tests/tcg/cris/bare/check_addiv32.s | 62 ------- tests/tcg/cris/bare/check_addm.s | 96 ---------- tests/tcg/cris/bare/check_addq.s | 47 ----- tests/tcg/cris/bare/check_addr.s | 96 ---------- tests/tcg/cris/bare/check_addxc.s | 91 --------- tests/tcg/cris/bare/check_addxm.s | 106 ----------- tests/tcg/cris/bare/check_addxr.s | 96 ---------- tests/tcg/cris/bare/check_andc.s | 80 -------- tests/tcg/cris/bare/check_andm.s | 90 --------- tests/tcg/cris/bare/check_andq.s | 46 ----- tests/tcg/cris/bare/check_andr.s | 95 ---------- tests/tcg/cris/bare/check_asr.s | 230 ----------------------- tests/tcg/cris/bare/check_ba.s | 93 ---------- tests/tcg/cris/bare/check_bas.s | 102 ---------- tests/tcg/cris/bare/check_bcc.s | 197 -------------------- tests/tcg/cris/bare/check_boundc.s | 101 ---------- tests/tcg/cris/bare/check_boundr.s | 125 ------------- tests/tcg/cris/bare/check_btst.s | 96 ---------- tests/tcg/cris/bare/check_clearfv32.s | 19 -- tests/tcg/cris/bare/check_clrjmp1.s | 36 ---- tests/tcg/cris/bare/check_cmp-2.s | 15 -- tests/tcg/cris/bare/check_cmpc.s | 86 --------- tests/tcg/cris/bare/check_cmpm.s | 96 ---------- tests/tcg/cris/bare/check_cmpq.s | 75 -------- tests/tcg/cris/bare/check_cmpr.s | 102 ---------- tests/tcg/cris/bare/check_cmpxc.s | 92 --------- tests/tcg/cris/bare/check_cmpxm.s | 106 ----------- tests/tcg/cris/bare/check_dstep.s | 42 ----- tests/tcg/cris/bare/check_jsr.s | 85 --------- tests/tcg/cris/bare/check_lapc.s | 78 -------- tests/tcg/cris/bare/check_lsl.s | 217 ---------------------- tests/tcg/cris/bare/check_lsr.s | 218 ---------------------- tests/tcg/cris/bare/check_mcp.s | 49 ----- tests/tcg/cris/bare/check_movdelsr1.s | 33 ---- tests/tcg/cris/bare/check_movecr.s | 37 ---- tests/tcg/cris/bare/check_movei.s | 50 ----- tests/tcg/cris/bare/check_movemr.s | 78 -------- tests/tcg/cris/bare/check_movemrv32.s | 96 ---------- tests/tcg/cris/bare/check_mover.s | 28 --- tests/tcg/cris/bare/check_moverm.s | 45 ----- tests/tcg/cris/bare/check_movmp.s | 131 ------------- tests/tcg/cris/bare/check_movpmv32.s | 35 ---- tests/tcg/cris/bare/check_movpr.s | 28 --- tests/tcg/cris/bare/check_movprv32.s | 21 --- tests/tcg/cris/bare/check_movscr.s | 29 --- tests/tcg/cris/bare/check_movsm.s | 44 ----- tests/tcg/cris/bare/check_movsr.s | 46 ----- tests/tcg/cris/bare/check_movucr.s | 33 ---- tests/tcg/cris/bare/check_movum.s | 40 ---- tests/tcg/cris/bare/check_movur.s | 45 ----- tests/tcg/cris/bare/check_mulv32.s | 51 ----- tests/tcg/cris/bare/check_mulx.s | 257 -------------------------- tests/tcg/cris/bare/check_neg.s | 104 ----------- tests/tcg/cris/bare/check_not.s | 31 ---- tests/tcg/cris/bare/check_orc.s | 71 ------- tests/tcg/cris/bare/check_orm.s | 75 -------- tests/tcg/cris/bare/check_orq.s | 41 ---- tests/tcg/cris/bare/check_orr.s | 84 --------- tests/tcg/cris/bare/check_ret.s | 25 --- tests/tcg/cris/bare/check_scc.s | 95 ----------
Quoted 8 lines
tests/tcg/cris/bare/check_subc.s | 87 --------- tests/tcg/cris/bare/check_subm.s | 96 ---------- tests/tcg/cris/bare/check_subq.s | 52 ------ tests/tcg/cris/bare/check_subr.s | 102 ---------- tests/tcg/cris/bare/check_xarith.s | 72 -------- tests/tcg/cris/bare/crt.s | 13 -- tests/tcg/cris/bare/testutils.inc | 117 ------------ 75 files changed, 5618 deletions(-)
PATCH v2 3/15 buildsys: Remove CRIS cross container
In reply to Philippe Mathieu-DaudéWe removed the cross compiled CRIS tests in the previous commit.
--- configure | 4 ---- .gitlab-ci.d/container-cross.yml | 5 ----- tests/docker/Makefile.include | 1 - tests/docker/dockerfiles/fedora-cris-cross.docker | 14 -------------- 4 files changed, 24 deletions(-) delete mode 100644 tests/docker/dockerfiles/fedora-cris-cross.docker
configure +0 -4
@@ -1250,7 +1250,6 @@ probe_target_compiler() { aarch64) container_hosts="x86_64 aarch64" ;; alpha) container_hosts=x86_64 ;; arm) container_hosts="x86_64 aarch64" ;; - cris) container_hosts=x86_64 ;; hexagon) container_hosts=x86_64 ;; hppa) container_hosts=x86_64 ;; i386) container_hosts=x86_64 ;;
@@ -1309,9 +1308,6 @@ probe_target_compiler() { container_image=debian-armhf-cross container_cross_prefix=arm-linux-gnueabihf- ;; - cris) - container_image=fedora-cris-cross - ;; hexagon) container_cross_prefix=hexagon-unknown-linux-musl- container_cross_cc=${container_cross_prefix}clang
.gitlab-ci.d/container-cross.yml +0 -5
@@ -96,11 +96,6 @@ xtensa-debian-cross-container: variables: NAME: debian-xtensa-cross -cris-fedora-cross-container: - extends: .container_job_template - variables: - NAME: fedora-cris-cross - win64-fedora-cross-container: extends: .container_job_template variables:
tests/docker/Makefile.include +0 -1
@@ -117,7 +117,6 @@ docker-image-debian-microblaze-cross: $(DOCKER_FILES_DIR)/debian-toolchain.docke # These images may be good enough for building tests but not for test builds DOCKER_PARTIAL_IMAGES += debian-microblaze-cross DOCKER_PARTIAL_IMAGES += debian-xtensa-cross -DOCKER_PARTIAL_IMAGES += fedora-cris-cross # images that are only used to build other images DOCKER_VIRTUAL_IMAGES := debian-bootstrap debian-toolchain
tests/docker/dockerfiles/fedora-cris-cross.docker deleted +0 -14
@@ -1,14 +0,0 @@ -# -# Cross compiler for cris system tests -# - -FROM registry.fedoraproject.org/fedora:33 -ENV PACKAGES gcc-cris-linux-gnu -ENV MAKE /usr/bin/make -RUN dnf install -y $PACKAGES -RUN rpm -q $PACKAGES | sort > /packages.txt -# As a final step configure the user (if env is defined) -ARG USER -ARG UID -RUN if [ "${USER}" ]; then \ - id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi
Signature · 1 line
2.45.2
Re: [PATCH v2 03/15] buildsys: Remove CRIS cross container
Quoted 10 lines · Philippe Mathieu-Daudé
We removed the cross compiled CRIS tests in the previous commit.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- configure | 4 ---- .gitlab-ci.d/container-cross.yml | 5 ----- tests/docker/Makefile.include | 1 - tests/docker/dockerfiles/fedora-cris-cross.docker | 14 -------------- 4 files changed, 24 deletions(-)delete mode 100644 tests/docker/dockerfiles/fedora-cris-cross.docker
PATCH v2 4/15 linux-user: Remove support for CRIS target
In reply to Philippe Mathieu-DaudéAs per the deprecation notice in commit c7bbef4023:
The CRIS architecture was pulled from Linux in 4.17 and the compiler is no longer packaged in any distro making it harder to run the check-tcg tests. Unless we can improve the testing situation there is a chance the code will bitrot without anyone noticing.
--- docs/user/main.rst | 4 - configs/targets/cris-linux-user.mak | 1 - include/user/abitypes.h | 7 - linux-user/cris/sockbits.h | 1 - linux-user/cris/syscall_nr.h | 367 --------------------------- linux-user/cris/target_cpu.h | 45 ---- linux-user/cris/target_elf.h | 14 - linux-user/cris/target_errno_defs.h | 7 - linux-user/cris/target_fcntl.h | 11 - linux-user/cris/target_mman.h | 13 - linux-user/cris/target_prctl.h | 1 - linux-user/cris/target_proc.h | 1 - linux-user/cris/target_resource.h | 1 - linux-user/cris/target_signal.h | 9 - linux-user/cris/target_structs.h | 1 - linux-user/cris/target_syscall.h | 46 ---- linux-user/cris/termbits.h | 225 ---------------- linux-user/syscall_defs.h | 7 +- linux-user/cris/cpu_loop.c | 95 ------- linux-user/cris/signal.c | 194 -------------- linux-user/elfload.c | 15 -- linux-user/syscall.c | 10 +- .gitlab-ci.d/crossbuild-template.yml | 2 +- 23 files changed, 5 insertions(+), 1072 deletions(-) delete mode 100644 configs/targets/cris-linux-user.mak delete mode 100644 linux-user/cris/sockbits.h delete mode 100644 linux-user/cris/syscall_nr.h delete mode 100644 linux-user/cris/target_cpu.h delete mode 100644 linux-user/cris/target_elf.h delete mode 100644 linux-user/cris/target_errno_defs.h delete mode 100644 linux-user/cris/target_fcntl.h delete mode 100644 linux-user/cris/target_mman.h delete mode 100644 linux-user/cris/target_prctl.h delete mode 100644 linux-user/cris/target_proc.h delete mode 100644 linux-user/cris/target_resource.h delete mode 100644 linux-user/cris/target_signal.h delete mode 100644 linux-user/cris/target_structs.h delete mode 100644 linux-user/cris/target_syscall.h delete mode 100644 linux-user/cris/termbits.h delete mode 100644 linux-user/cris/cpu_loop.c delete mode 100644 linux-user/cris/signal.c
docs/user/main.rst +0 -4
@@ -130,10 +130,6 @@ Other binaries The binary format is detected automatically. -- user mode (Cris) - - * ``qemu-cris`` TODO. - - user mode (i386) * ``qemu-i386`` TODO.
configs/targets/cris-linux-user.mak deleted +0 -1
@@ -1 +0,0 @@ -TARGET_ARCH=cris
include/user/abitypes.h +0 -7
@@ -21,13 +21,6 @@#define ABI_LLONG_ALIGNMENT 2#endif -#ifdef TARGET_CRIS -#define ABI_SHORT_ALIGNMENT 1 -#define ABI_INT_ALIGNMENT 1 -#define ABI_LONG_ALIGNMENT 1 -#define ABI_LLONG_ALIGNMENT 1 -#endif -#if (defined(TARGET_I386 ) && !defined(TARGET_X86_64 )) \ || defined(TARGET_SH4 ) \ || defined(TARGET_OPENRISC ) \
linux-user/cris/sockbits.h deleted +0 -1
@@ -1 +0,0 @@ -#include "../generic/sockbits.h"
linux-user/cris/syscall_nr.h deleted +0 -367
367 lines not on this page · raw message
linux-user/cris/target_cpu.h deleted +0 -45
45 lines not on this page · raw message
linux-user/cris/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 CRIS_TARGET_ELF_H -#define CRIS_TARGET_ELF_H -static inline const char *cpu_get_model (uint32_t eflags) -{ -return "any" ; -} -#endif
linux-user/cris/target_errno_defs.h deleted +0 -7
@@ -1,7 +0,0 @@ -#ifndef CRIS_TARGET_ERRNO_DEFS_H -#define CRIS_TARGET_ERRNO_DEFS_H - -/* Target uses generic errno */ -#include "../generic/target_errno_defs.h" - -#endif
linux-user/cris/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 CRIS_TARGET_FCNTL_H -#define CRIS_TARGET_FCNTL_H -#include "../generic/fcntl.h" -#endif
linux-user/cris/target_mman.h deleted +0 -13
@@ -1,13 +0,0 @@ -/* -* arch/cris/include/asm/processor.h: -* TASK_UNMAPPED_BASE (PAGE_ALIGN(TASK_SIZE / 3)) -* -* arch/cris/include/arch-v32/arch/processor.h -* TASK_SIZE 0xb0000000 -*/ -#define TASK_UNMAPPED_BASE TARGET_PAGE_ALIGN(0xb0000000 / 3) - -/* arch/cris/include/uapi/asm/elf.h */ -#define ELF_ET_DYN_BASE (TASK_UNMAPPED_BASE * 2) - -#include "../generic/target_mman.h"
linux-user/cris/target_prctl.h deleted +0 -1
@@ -1 +0,0 @@ -/* No special prctl support required. */
linux-user/cris/target_proc.h deleted +0 -1
@@ -1 +0,0 @@ -/* No target-specific /proc support */
linux-user/cris/target_resource.h deleted +0 -1
@@ -1 +0,0 @@ -#include "../generic/target_resource.h"
linux-user/cris/target_signal.h deleted +0 -9
@@ -1,9 +0,0 @@ -#ifndef CRIS_TARGET_SIGNAL_H -#define CRIS_TARGET_SIGNAL_H - -#include "../generic/signal.h" - -#define TARGET_ARCH_HAS_SETUP_FRAME -#define TARGET_ARCH_HAS_SIGTRAMP_PAGE 1 - -#endif /* CRIS_TARGET_SIGNAL_H */
linux-user/cris/target_structs.h deleted +0 -1
@@ -1 +0,0 @@ -#include "../generic/target_structs.h"
linux-user/cris/target_syscall.h deleted +0 -46
46 lines not on this page · raw message
linux-user/cris/termbits.h deleted +0 -225
225 lines not on this page · raw message
linux-user/syscall_defs.h +3 -4
@@ -62,7 +62,7 @@#if (defined(TARGET_I386 ) && defined(TARGET_ABI32 )) \ || (defined(TARGET_ARM ) && defined(TARGET_ABI32 )) \ || (defined(TARGET_SPARC ) && defined(TARGET_ABI32 )) \ - || defined(TARGET_M68K ) || defined(TARGET_SH4 ) || defined(TARGET_CRIS ) + || defined(TARGET_M68K ) || defined(TARGET_SH4 )/* 16 bit uid wrappers emulation */ #define USE_UID16 #define target_id uint16_t
@@ -71,7 +71,7 @@#endif #if defined(TARGET_I386 ) || defined(TARGET_ARM ) || defined(TARGET_SH4 ) \ - || defined(TARGET_M68K ) || defined(TARGET_CRIS ) \ + || defined(TARGET_M68K ) \ || defined(TARGET_S390X ) || defined(TARGET_OPENRISC ) \ || defined(TARGET_RISCV ) \ || defined(TARGET_XTENSA ) || defined(TARGET_LOONGARCH64 )
@@ -1234,8 +1234,7 @@ struct target_winsize {#include "target_mman.h" #if (defined(TARGET_I386) && defined(TARGET_ABI32)) \ - || (defined(TARGET_ARM) && defined(TARGET_ABI32)) \ - || defined(TARGET_CRIS) + || (defined(TARGET_ARM) && defined(TARGET_ABI32)) #define TARGET_STAT_HAVE_NSEC struct target_stat { abi_ushort st_dev;
linux-user/cris/cpu_loop.c deleted +0 -95
95 lines not on this page · raw message
linux-user/cris/signal.c deleted +0 -194
194 lines not on this page · raw message
linux-user/elfload.c +0 -15
@@ -1647,21 +1647,6 @@ static uint32_t get_elf_hwcap(void)#endif -#ifdef TARGET_CRIS - -#define ELF_CLASS ELFCLASS32 -#define ELF_ARCH EM_CRIS - -static inline void init_thread (struct target_pt_regs *regs, -struct image_info *infop) -{ - regs->erp = infop->entry; -} - -#define ELF_EXEC_PAGESIZE 8192 - -#endif -#ifdef TARGET_M68K #define ELF_CLASS ELFCLASS32
linux-user/syscall.c +1 -9
@@ -10484,7 +10484,7 @@ static abi_long do_syscall1(CPUArchState *cpu_env, int num, abi_long arg1,case TARGET_NR_mmap:#if (defined(TARGET_I386 ) && defined(TARGET_ABI32 )) || \ (defined(TARGET_ARM ) && defined(TARGET_ABI32 )) || \ - defined(TARGET_M68K ) || defined(TARGET_CRIS ) || defined(TARGET_MICROBLAZE ) \ + defined(TARGET_M68K ) || defined(TARGET_MICROBLAZE ) \ || defined(TARGET_S390X ) {abi_ulong *v;
@@ -12638,14 +12638,6 @@ static abi_long do_syscall1(CPUArchState *cpu_env, int num, abi_long arg1,#if defined(TARGET_MIPS ) cpu_env->active_tc.CP0_UserLocal = arg1;return 0 ; -#elif defined(TARGET_CRIS ) -if (arg1 &0xff ) - ret = -TARGET_EINVAL ; -else { - cpu_env->pregs[PR_PID ] = arg1; - ret =0 ; - } -return ret;#elif defined(TARGET_I386 ) && defined(TARGET_ABI32 )return do_set_thread_area (cpu_env, arg1);#elif defined(TARGET_M68K )
.gitlab-ci.d/crossbuild-template.yml +1 -1
@@ -73,7 +73,7 @@ - cd build - ../configure --enable-werror --disable-docs $QEMU_CONFIGURE_OPTS --disable-system --target-list-exclude="aarch64_be-linux-user - alpha-linux-user cris-linux-user m68k-linux-user microblazeel-linux-user + alpha-linux-user m68k-linux-user microblazeel-linux-user or1k-linux-user ppc-linux-user sparc-linux-user xtensa-linux-user $CROSS_SKIP_TARGETS" - make -j$(expr $(nproc) + 1) all check-build $MAKE_CHECK_ARGS
Signature · 1 line
2.45.2
Re: [PATCH v2 04/15] linux-user: Remove support for CRIS target
Quoted 10 lines · Philippe Mathieu-Daudé
As per the deprecation notice in commit
c7bbef4023:The CRIS architecture was pulled from Linux in 4.17 and the compiler is no longer packaged in any distro making it harder to run the
check-tcgtests. Unless we can improve the testing situation there is a chance the code will bitrot without anyone noticing.Signed-off-by Philippe Mathieu-Daudé <[email protected]>---
PATCH v2 5/15 hw/cris: Remove the axis-dev88 machine
In reply to Philippe Mathieu-DaudéThis machine was deprecated for the v9.0 release in commit c7bbef4023 ("docs: mark CRIS support as deprecated").
--- MAINTAINERS | 3 +- configs/devices/cris-softmmu/default.mak | 3 - hw/cris/axis_dev88.c | 351 ----------------------- hw/cris/Kconfig | 8 - hw/cris/meson.build | 1 - 5 files changed, 1 insertion(+), 365 deletions(-) delete mode 100644 hw/cris/axis_dev88.c
MAINTAINERS +1 -2
@@ -1210,10 +1210,9 @@ F: hw/avr/arduino.c CRIS Machines ------------- -Axis Dev88 +Etrax hardware M: Edgar E. Iglesias <[email protected]> S: Maintained -F: hw/cris/axis_dev88.c F: hw/*/etraxfs_*.c HP-PARISC Machines
configs/devices/cris-softmmu/default.mak +0 -3
@@ -1,4 +1 @@ # Default configuration for cris-softmmu - -# Boards are selected by default, uncomment to keep out of the build. -# CONFIG_AXIS=n
hw/cris/axis_dev88.c deleted +0 -351
351 lines not on this page · raw message
hw/cris/Kconfig +0 -8
@@ -1,11 +1,3 @@ -config AXIS - bool - default y - depends on CRIS - select ETRAXFS - select PFLASH_CFI02 - select NAND - config ETRAXFS bool select PTIMER
hw/cris/meson.build +0 -1
@@ -1,5 +1,4 @@ cris_ss = ss.source_set() cris_ss.add(files('boot.c')) -cris_ss.add(when: 'CONFIG_AXIS', if_true: files('axis_dev88.c')) hw_arch += {'cris': cris_ss}
Signature · 1 line
2.45.2
Re: [PATCH v2 05/15] hw/cris: Remove the axis-dev88 machine
Quoted 4 lines · Philippe Mathieu-Daudé
This machine was deprecated for the v9.0 release in commit
c7bbef4023("docs: mark CRIS support as deprecated").Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Quoted 8 lines
--- MAINTAINERS | 3 +- configs/devices/cris-softmmu/default.mak | 3 - hw/cris/axis_dev88.c | 351 ----------------------- hw/cris/Kconfig | 8 - hw/cris/meson.build | 1 - 5 files changed, 1 insertion(+), 365 deletions(-)delete mode 100644
hw/cris/axis_dev88.c
PATCH v2 6/15 hw/cris: Remove image loader helper
In reply to Philippe Mathieu-DaudéNo more CRIS machine uses cris_load_image(), remove it.
--- hw/cris/boot.h | 16 ------- hw/cris/boot.c | 102 -------------------------------------------- hw/cris/meson.build | 4 -- hw/meson.build | 1 - 4 files changed, 123 deletions(-) delete mode 100644 hw/cris/boot.h delete mode 100644 hw/cris/boot.c delete mode 100644 hw/cris/meson.build
hw/cris/boot.h deleted +0 -16
@@ -1,16 +0,0 @@ -#ifndef HW_CRIS_BOOT_H -#define HW_CRIS_BOOT_H - -struct cris_load_info -{ -const char *image_filename; -const char *cmdline; -int image_size; -ram_addr_t ram_size; - -hwaddr entry; -}; - -void cris_load_image (CRISCPU *cpu,struct cris_load_info *li); - -#endif
hw/cris/boot.c deleted +0 -102
102 lines not on this page · raw message
hw/cris/meson.build deleted +0 -4
@@ -1,4 +0,0 @@ -cris_ss = ss.source_set() -cris_ss.add(files('boot.c')) - -hw_arch += {'cris': cris_ss}
hw/meson.build +0 -1
@@ -48,7 +48,6 @@ subdir('fsi') subdir('alpha') subdir('arm') subdir('avr') -subdir('cris') subdir('hppa') subdir('i386') subdir('loongarch')
Signature · 1 line
2.45.2
Re: [PATCH v2 06/15] hw/cris: Remove image loader helper
Quoted 9 lines · Philippe Mathieu-Daudé
No more CRIS machine uses
cris_load_image(), remove it.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/cris/boot.h | 16 ------- hw/cris/boot.c | 102 -------------------------------------------- hw/cris/meson.build | 4 -- hw/meson.build | 1 - 4 files changed, 123 deletions(-)
Quoted 3 lines
delete mode 100644
hw/cris/boot.h
delete mode 100644hw/cris/boot.c
delete mode 100644 hw/cris/meson.build
PATCH v2 7/15 hw/intc: Remove TYPE_ETRAX_FS_PIC device
In reply to Philippe Mathieu-DaudéWe just removed the single machine using it (axis-dev88).
--- hw/intc/etraxfs_pic.c | 172 ------------------------------------------ hw/intc/meson.build | 1 - 2 files changed, 173 deletions(-) delete mode 100644 hw/intc/etraxfs_pic.c
hw/intc/etraxfs_pic.c deleted +0 -172
@@ -1,172 +0,0 @@ -/* -* QEMU ETRAX Interrupt Controller. -* -* Copyright (c) 2008 Edgar E. Iglesias, Axis Communications AB. -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -* all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -* THE SOFTWARE. -*/ - -#include "qemu/osdep.h" -#include "hw/sysbus.h" -#include "qemu/module.h" -#include "hw/irq.h" -#include "hw/qdev-properties.h" -#include "qom/object.h" - -#define D (x) - -#define R_RW_MASK 0 -#define R_R_VECT 1 -#define R_R_MASKED_VECT 2 -#define R_R_NMI 3 -#define R_R_GURU 4 -#define R_MAX 5 - -#define TYPE_ETRAX_FS_PIC "etraxfs-pic" -DECLARE_INSTANCE_CHECKER(struct etrax_pic, ETRAX_FS_PIC, - TYPE_ETRAX_FS_PIC) - -struct etrax_pic -{ -SysBusDevice parent_obj; - -MemoryRegion mmio; -qemu_irq parent_irq; -qemu_irq parent_nmi; -uint32_t regs[R_MAX ]; -}; - -static void pic_update (struct etrax_pic *fs) -{ -uint32_t vector =0 ; -int i; - - fs->regs[R_R_MASKED_VECT ] = fs->regs[R_R_VECT ] & fs->regs[R_RW_MASK ]; - -/* The ETRAX interrupt controller signals interrupts to the core -through an interrupt request wire and an irq vector bus. If -multiple interrupts are simultaneously active it chooses vector -0x30 and lets the sw choose the priorities. */ -if (fs->regs[R_R_MASKED_VECT ]) { -uint32_t mv = fs->regs[R_R_MASKED_VECT ]; -for (i =0 ; i <31 ; i++) { -if (mv &1 ) { - vector =0x31 + i; -/* Check for multiple interrupts. */ -if (mv >1 ) - vector =0x30 ; -break ; - } - mv >>=1 ; - } - } - -qemu_set_irq (fs->parent_irq, vector); -} - -static uint64_t -pic_read (void *opaque,hwaddr addr,unsigned int size) -{ -struct etrax_pic *fs = opaque; -uint32_t rval; - - rval = fs->regs[addr >>2 ]; -D (printf ("%s %x=%x\n" , __func__, addr, rval)); -return rval; -} - -static void pic_write (void *opaque,hwaddr addr, -uint64_t value,unsigned int size) -{ -struct etrax_pic *fs = opaque; -D (printf ("%s addr=%x val=%x\n" , __func__, addr, value)); - -if (addr ==R_RW_MASK ) { - fs->regs[R_RW_MASK ] = value; -pic_update (fs); - } -} - -static const MemoryRegionOps pic_ops = { - .read = pic_read, - .write = pic_write, - .endianness =DEVICE_NATIVE_ENDIAN , - .valid = { - .min_access_size =4 , - .max_access_size =4 - } -}; - -static void nmi_handler (void *opaque,int irq,int level) -{ -struct etrax_pic *fs = (void *)opaque; -uint32_t mask; - - mask =1 << irq; -if (level) - fs->regs[R_R_NMI ] |= mask; -else - fs->regs[R_R_NMI ] &= ~mask; - -qemu_set_irq (fs->parent_nmi, !!fs->regs[R_R_NMI ]); -} - -static void irq_handler (void *opaque,int irq,int level) -{ -struct etrax_pic *fs = (void *)opaque; - -if (irq >=30 ) { -nmi_handler (opaque, irq, level); -return ; - } - - irq -=1 ; - fs->regs[R_R_VECT ] &= ~(1 << irq); - fs->regs[R_R_VECT ] |= (!!level << irq); -pic_update (fs); -} - -static void etraxfs_pic_init (Object *obj) -{ -DeviceState *dev =DEVICE (obj); -struct etrax_pic *s =ETRAX_FS_PIC (obj); -SysBusDevice *sbd =SYS_BUS_DEVICE (obj); - -qdev_init_gpio_in (dev, irq_handler,32 ); -sysbus_init_irq (sbd, &s->parent_irq); -sysbus_init_irq (sbd, &s->parent_nmi); - -memory_region_init_io (&s->mmio, obj, &pic_ops, s, -"etraxfs-pic" ,R_MAX *4 ); -sysbus_init_mmio (sbd, &s->mmio); -} - -static const TypeInfo etraxfs_pic_info = { - .name =TYPE_ETRAX_FS_PIC , - .parent =TYPE_SYS_BUS_DEVICE , - .instance_size =sizeof (struct etrax_pic ), - .instance_init = etraxfs_pic_init, -}; - -static void etraxfs_pic_register_types (void ) -{ -type_register_static (&etraxfs_pic_info); -} - -type_init (etraxfs_pic_register_types)
hw/intc/meson.build +0 -1
@@ -15,7 +15,6 @@ system_ss.add(when: 'CONFIG_ARM_GICV3_TCG', if_true: files( system_ss.add(when: 'CONFIG_ALLWINNER_A10_PIC', if_true: files('allwinner-a10-pic.c')) system_ss.add(when: 'CONFIG_ASPEED_SOC', if_true: files('aspeed_vic.c')) system_ss.add(when: 'CONFIG_ASPEED_SOC', if_true: files('aspeed_intc.c')) -system_ss.add(when: 'CONFIG_ETRAXFS', if_true: files('etraxfs_pic.c')) system_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210_gic.c', 'exynos4210_combiner.c')) system_ss.add(when: 'CONFIG_GOLDFISH_PIC', if_true: files('goldfish_pic.c')) system_ss.add(when: 'CONFIG_HEATHROW_PIC', if_true: files('heathrow_pic.c'))
Signature · 1 line
2.45.2
Re: [PATCH v2 07/15] hw/intc: Remove TYPE_ETRAX_FS_PIC device
Quoted 8 lines · Philippe Mathieu-Daudé
We just removed the single machine using it (axis-dev88).
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/intc/etraxfs_pic.c | 172 ------------------------------------------ hw/intc/meson.build | 1 - 2 files changed, 173 deletions(-)delete mode 100644
hw/intc/etraxfs_pic.c
PATCH v2 8/15 hw/char: Remove TYPE_ETRAX_FS_SERIAL device
In reply to Philippe Mathieu-DaudéWe just removed the single machine using it (axis-dev88).
--- include/hw/cris/etraxfs.h | 18 --- hw/char/etraxfs_ser.c | 267 -------------------------------------- hw/char/meson.build | 1 - 3 files changed, 286 deletions(-) delete mode 100644 hw/char/etraxfs_ser.c
include/hw/cris/etraxfs.h +0 -18
@@ -27,28 +27,10 @@#include "net/net.h" #include "hw/cris/etraxfs_dma.h" -#include "hw/qdev-properties.h" -#include "hw/sysbus.h" #include "qapi/error.h" DeviceState *etraxfs_eth_init (hwaddr base,int phyaddr,struct etraxfs_dma_client *dma_out,struct etraxfs_dma_client *dma_in); -static inline DeviceState *etraxfs_ser_create (hwaddr addr, -qemu_irq irq, -Chardev *chr) -{ -DeviceState *dev; -SysBusDevice *s; - - dev =qdev_new ("etraxfs-serial" ); - s =SYS_BUS_DEVICE (dev); -qdev_prop_set_chr (dev,"chardev" , chr); -sysbus_realize_and_unref (s, &error_fatal); -sysbus_mmio_map (s,0 , addr); -sysbus_connect_irq (s,0 , irq); -return dev; -} -#endif
hw/char/etraxfs_ser.c deleted +0 -267
267 lines not on this page · raw message
hw/char/meson.build +0 -1
@@ -1,7 +1,6 @@ system_ss.add(when: 'CONFIG_CADENCE', if_true: files('cadence_uart.c')) system_ss.add(when: 'CONFIG_CMSDK_APB_UART', if_true: files('cmsdk-apb-uart.c')) system_ss.add(when: 'CONFIG_ESCC', if_true: files('escc.c')) -system_ss.add(when: 'CONFIG_ETRAXFS', if_true: files('etraxfs_ser.c')) system_ss.add(when: 'CONFIG_GRLIB', if_true: files('grlib_apbuart.c')) system_ss.add(when: 'CONFIG_IBEX', if_true: files('ibex_uart.c')) system_ss.add(when: 'CONFIG_IMX', if_true: files('imx_serial.c'))
Signature · 1 line
2.45.2
Re: [PATCH v2 08/15] hw/char: Remove TYPE_ETRAX_FS_SERIAL device
Quoted 9 lines · Philippe Mathieu-Daudé
We just removed the single machine using it (axis-dev88).
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- include/hw/cris/etraxfs.h | 18 --- hw/char/etraxfs_ser.c | 267 -------------------------------------- hw/char/meson.build | 1 - 3 files changed, 286 deletions(-)delete mode 100644
hw/char/etraxfs_ser.c
PATCH v2 9/15 hw/net: Remove TYPE_ETRAX_FS_ETH device
In reply to Philippe Mathieu-DaudéWe just removed the single machine using it (axis-dev88).
--- include/hw/cris/etraxfs.h | 36 -- hw/net/etraxfs_eth.c | 688 -------------------------------------- hw/net/meson.build | 1 - hw/net/trace-events | 5 - 4 files changed, 730 deletions(-) delete mode 100644 include/hw/cris/etraxfs.h delete mode 100644 hw/net/etraxfs_eth.c
include/hw/cris/etraxfs.h deleted +0 -36
@@ -1,36 +0,0 @@ -/* -* QEMU ETRAX System Emulator -* -* Copyright (c) 2008 Edgar E. Iglesias, Axis Communications AB. -* -* Permission is hereby granted, free of charge, to any person obtaining a copy -* of this software and associated documentation files (the "Software"), to deal -* in the Software without restriction, including without limitation the rights -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -* copies of the Software, and to permit persons to whom the Software is -* furnished to do so, subject to the following conditions: -* -* The above copyright notice and this permission notice shall be included in -* all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -* THE SOFTWARE. -*/ - -#ifndef HW_ETRAXFS_H -#define HW_ETRAXFS_H - -#include "net/net.h" -#include "hw/cris/etraxfs_dma.h" -#include "qapi/error.h" - -DeviceState *etraxfs_eth_init (hwaddr base,int phyaddr, -struct etraxfs_dma_client *dma_out, -struct etraxfs_dma_client *dma_in); - -#endif
hw/net/etraxfs_eth.c deleted +0 -688
688 lines not on this page · raw message
hw/net/meson.build +0 -1
@@ -40,7 +40,6 @@ system_ss.add(when: 'CONFIG_FTGMAC100', if_true: files('ftgmac100.c')) system_ss.add(when: 'CONFIG_SUNGEM', if_true: files('sungem.c')) system_ss.add(when: 'CONFIG_NPCM7XX', if_true: files('npcm7xx_emc.c', 'npcm_gmac.c')) -system_ss.add(when: 'CONFIG_ETRAXFS', if_true: files('etraxfs_eth.c')) system_ss.add(when: 'CONFIG_COLDFIRE', if_true: files('mcf_fec.c')) specific_ss.add(when: 'CONFIG_PSERIES', if_true: files('spapr_llan.c')) system_ss.add(when: 'CONFIG_XILINX_ETHLITE', if_true: files('xilinx_ethlite.c'))
hw/net/trace-events +0 -5
@@ -10,11 +10,6 @@ allwinner_sun8i_emac_set_link(bool active) "Set link: active=%u" allwinner_sun8i_emac_read(uint64_t offset, uint64_t val) "MMIO read: offset=0x%" PRIx64 " value=0x%" PRIx64 allwinner_sun8i_emac_write(uint64_t offset, uint64_t val) "MMIO write: offset=0x%" PRIx64 " value=0x%" PRIx64 -# etraxfs_eth.c -mdio_phy_read(int regnum, uint16_t value) "read phy_reg:%d value:0x%04x" -mdio_phy_write(int regnum, uint16_t value) "write phy_reg:%d value:0x%04x" -mdio_bitbang(bool mdc, bool mdio, int state, uint16_t cnt, unsigned int drive) "bitbang mdc=%u mdio=%u state=%d cnt=%u drv=%d" - # lance.c lance_mem_readw(uint64_t addr, uint32_t ret) "addr=0x%"PRIx64"val=0x%04x" lance_mem_writew(uint64_t addr, uint32_t val) "addr=0x%"PRIx64"val=0x%04x"
Signature · 1 line
2.45.2
Re: [PATCH v2 09/15] hw/net: Remove TYPE_ETRAX_FS_ETH device
Quoted 11 lines · Philippe Mathieu-Daudé
We just removed the single machine using it (axis-dev88).
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- include/hw/cris/etraxfs.h | 36 -- hw/net/etraxfs_eth.c | 688 -------------------------------------- hw/net/meson.build | 1 - hw/net/trace-events | 5 - 4 files changed, 730 deletions(-)delete mode 100644
include/hw/cris/etraxfs.h
delete mode 100644hw/net/etraxfs_eth.c
PATCH v2 10/15 hw/dma: Remove ETRAX_FS DMA device
In reply to Philippe Mathieu-DaudéWe just removed the single machine calling etraxfs_dmac_init() (the axis-dev88 machine).
--- MAINTAINERS | 1 - include/hw/cris/etraxfs_dma.h | 36 -- hw/dma/etraxfs_dma.c | 781 ---------------------------- hw/dma/meson.build | 1 - scripts/coverity-scan/COMPONENTS.md | 2 +- 5 files changed, 1 insertion(+), 820 deletions(-) delete mode 100644 include/hw/cris/etraxfs_dma.h delete mode 100644 hw/dma/etraxfs_dma.c
MAINTAINERS +0 -1
@@ -229,7 +229,6 @@ M: Edgar E. Iglesias <[email protected]> S: Maintained F: target/cris/ F: hw/cris/ -F: include/hw/cris/ F: disas/cris.c Hexagon TCG CPUs
include/hw/cris/etraxfs_dma.h deleted +0 -36
@@ -1,36 +0,0 @@ -#ifndef HW_ETRAXFS_DMA_H -#define HW_ETRAXFS_DMA_H - -#include "exec/hwaddr.h" - -struct dma_context_metadata { -/* data descriptor md */ -uint16_t metadata; -}; - -struct etraxfs_dma_client -{ -/* DMA controller. */ -int channel; -void *ctrl; - -/* client. */ -struct { -int (*push)(void *opaque,unsigned char *buf, -int len,bool eop); -void (*pull)(void *opaque); -void (*metadata_push)(void *opaque, -const struct dma_context_metadata *md); -void *opaque; - } client; -}; - -void *etraxfs_dmac_init (hwaddr base,int nr_channels); -void etraxfs_dmac_connect (void *opaque,int channel,qemu_irq *line, -int input); -void etraxfs_dmac_connect_client (void *opaque,int c, -struct etraxfs_dma_client *cl); -int etraxfs_dmac_input (struct etraxfs_dma_client *client, -void *buf,int len,int eop); - -#endif
hw/dma/etraxfs_dma.c deleted +0 -781
781 lines not on this page · raw message
hw/dma/meson.build +0 -1
@@ -5,7 +5,6 @@ system_ss.add(when: 'CONFIG_I82374', if_true: files('i82374.c')) system_ss.add(when: 'CONFIG_I8257', if_true: files('i8257.c')) system_ss.add(when: 'CONFIG_XILINX_AXI', if_true: files('xilinx_axidma.c')) system_ss.add(when: 'CONFIG_ZYNQ_DEVCFG', if_true: files('xlnx-zynq-devcfg.c')) -system_ss.add(when: 'CONFIG_ETRAXFS', if_true: files('etraxfs_dma.c')) system_ss.add(when: 'CONFIG_STP2000', if_true: files('sparc32_dma.c')) system_ss.add(when: 'CONFIG_XLNX_ZYNQMP_ARM', if_true: files('xlnx_dpdma.c')) system_ss.add(when: 'CONFIG_XLNX_ZDMA', if_true: files('xlnx-zdma.c'))
scripts/coverity-scan/COMPONENTS.md +1 -1
@@ -10,7 +10,7 @@ avr ~ .*/qemu((/include)?/hw/avr/.*|/target/avr/.*) cris - ~ .*/qemu((/include)?/hw/cris/.*|/target/cris/.*) + ~ .*/qemu(/hw/cris/.*|/target/cris/.*) hexagon-gen (component should be ignored in analysis) ~ .*/qemu(/target/hexagon/.*generated.*)
Signature · 1 line
2.45.2
Re: [PATCH v2 10/15] hw/dma: Remove ETRAX_FS DMA device
Quoted 11 lines · Philippe Mathieu-Daudé
We just removed the single machine calling
etraxfs_dmac_init()(the axis-dev88 machine).Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- MAINTAINERS | 1 - include/hw/cris/etraxfs_dma.h | 36 -- hw/dma/etraxfs_dma.c | 781 ---------------------------- hw/dma/meson.build | 1 - scripts/coverity-scan/COMPONENTS.md | 2 +- 5 files changed, 1 insertion(+), 820 deletions(-)
Quoted 2 lines
delete mode 100644
include/hw/cris/etraxfs_dma.hdelete mode 100644hw/dma/etraxfs_dma.c
PATCH v2 11/15 hw/timer: Remove TYPE_ETRAX_FS_TIMER device
In reply to Philippe Mathieu-DaudéWe just removed the single machine using it (axis-dev88).
--- MAINTAINERS | 8 - hw/timer/etraxfs_timer.c | 407 ---------------------------- hw/Kconfig | 1 - hw/cris/Kconfig | 3 - hw/timer/meson.build | 1 - scripts/coverity-scan/COMPONENTS.md | 2 +- 6 files changed, 1 insertion(+), 421 deletions(-) delete mode 100644 hw/timer/etraxfs_timer.c delete mode 100644 hw/cris/Kconfig
MAINTAINERS +0 -8
@@ -228,7 +228,6 @@ CRIS TCG CPUs M: Edgar E. Iglesias <[email protected]> S: Maintained F: target/cris/ -F: hw/cris/ F: disas/cris.c Hexagon TCG CPUs
@@ -1207,13 +1206,6 @@ M: Philippe Mathieu-Daudé <[email protected]> S: Maintained F: hw/avr/arduino.c -CRIS Machines -------------- -Etrax hardware -M: Edgar E. Iglesias <[email protected]> -S: Maintained -F: hw/*/etraxfs_*.c - HP-PARISC Machines ------------------ HP B160L, HP C3700
hw/timer/etraxfs_timer.c deleted +0 -407
407 lines not on this page · raw message
hw/Kconfig +0 -1
@@ -50,7 +50,6 @@ source arm/Kconfig source cpu/Kconfig source alpha/Kconfig source avr/Kconfig -source cris/Kconfig source hppa/Kconfig source i386/Kconfig source loongarch/Kconfig
hw/cris/Kconfig deleted +0 -3
@@ -1,3 +0,0 @@ -config ETRAXFS - bool - select PTIMER
hw/timer/meson.build +0 -1
@@ -10,7 +10,6 @@ system_ss.add(when: 'CONFIG_CMSDK_APB_TIMER', if_true: files('cmsdk-apb-timer.c' system_ss.add(when: 'CONFIG_RENESAS_TMR', if_true: files('renesas_tmr.c')) system_ss.add(when: 'CONFIG_RENESAS_CMT', if_true: files('renesas_cmt.c')) system_ss.add(when: 'CONFIG_DIGIC', if_true: files('digic-timer.c')) -system_ss.add(when: 'CONFIG_ETRAXFS', if_true: files('etraxfs_timer.c')) system_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210_mct.c')) system_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210_pwm.c')) system_ss.add(when: 'CONFIG_GRLIB', if_true: files('grlib_gptimer.c'))
scripts/coverity-scan/COMPONENTS.md +1 -1
@@ -10,7 +10,7 @@ avr ~ .*/qemu((/include)?/hw/avr/.*|/target/avr/.*) cris - ~ .*/qemu(/hw/cris/.*|/target/cris/.*) + ~ .*/qemu/target/cris/.* hexagon-gen (component should be ignored in analysis) ~ .*/qemu(/target/hexagon/.*generated.*)
Signature · 1 line
2.45.2
Re: [PATCH v2 11/15] hw/timer: Remove TYPE_ETRAX_FS_TIMER device
Quoted 11 lines · Philippe Mathieu-Daudé
We just removed the single machine using it (axis-dev88).
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- MAINTAINERS | 8 - hw/timer/etraxfs_timer.c | 407 ---------------------------- hw/Kconfig | 1 - hw/cris/Kconfig | 3 - hw/timer/meson.build | 1 - scripts/coverity-scan/COMPONENTS.md | 2 +- 6 files changed, 1 insertion(+), 421 deletions(-)
Quoted 2 lines
delete mode 100644
hw/timer/etraxfs_timer.c
delete mode 100644 hw/cris/Kconfig
PATCH v2 12/15 system: Remove support for CRIS target
In reply to Philippe Mathieu-DaudéWe are about to remove the CRIS target, so remove the sysemu part. This remove the CRIS 'none' machine.
--- configs/devices/cris-softmmu/default.mak | 1 - configs/targets/cris-softmmu.mak | 1 - qapi/machine.json | 2 +- include/sysemu/arch_init.h | 1 - .gitlab-ci.d/buildtest.yml | 2 +- .gitlab-ci.d/crossbuild-template.yml | 2 +- 6 files changed, 3 insertions(+), 6 deletions(-) delete mode 100644 configs/devices/cris-softmmu/default.mak delete mode 100644 configs/targets/cris-softmmu.mak
configs/devices/cris-softmmu/default.mak deleted +0 -1
@@ -1 +0,0 @@ -# Default configuration for cris-softmmu
configs/targets/cris-softmmu.mak deleted +0 -1
@@ -1 +0,0 @@ -TARGET_ARCH=cris
qapi/machine.json +1 -1
@@ -33,7 +33,7 @@ # Since: 3.0 ## { 'enum' : 'SysEmuTarget', - 'data' : [ 'aarch64', 'alpha', 'arm', 'avr', 'cris', 'hppa', 'i386', + 'data' : [ 'aarch64', 'alpha', 'arm', 'avr', 'hppa', 'i386', 'loongarch64', 'm68k', 'microblaze', 'microblazeel', 'mips', 'mips64', 'mips64el', 'mipsel', 'or1k', 'ppc', 'ppc64', 'riscv32', 'riscv64', 'rx', 's390x', 'sh4',
include/sysemu/arch_init.h +0 -1
@@ -6,7 +6,6 @@ enum {QEMU_ARCH_ALL =-1 ,QEMU_ARCH_ALPHA = (1 <<0 ),QEMU_ARCH_ARM = (1 <<1 ), -QEMU_ARCH_CRIS = (1 <<2 ),QEMU_ARCH_I386 = (1 <<3 ),QEMU_ARCH_M68K = (1 <<4 ), QEMU_ARCH_MICROBLAZE = (1 << 6),
.gitlab-ci.d/buildtest.yml +1 -1
@@ -667,7 +667,7 @@ build-without-defaults: --disable-pie --disable-qom-cast-debug --disable-strip - TARGETS: alpha-softmmu avr-softmmu cris-softmmu hppa-softmmu m68k-softmmu + TARGETS: alpha-softmmu avr-softmmu hppa-softmmu m68k-softmmu mips-softmmu mips64-softmmu mipsel-softmmu mips64el-softmmu ppc-softmmu s390x-softmmu sh4-softmmu sh4eb-softmmu sparc-softmmu sparc64-softmmu tricore-softmmu xtensa-softmmu xtensaeb-softmmu
.gitlab-ci.d/crossbuild-template.yml +1 -1
@@ -20,7 +20,7 @@ - ccache --zero-stats - ../configure --enable-werror --disable-docs --enable-fdt=system --disable-user $QEMU_CONFIGURE_OPTS $EXTRA_CONFIGURE_OPTS - --target-list-exclude="arm-softmmu cris-softmmu + --target-list-exclude="arm-softmmu i386-softmmu microblaze-softmmu mips-softmmu mipsel-softmmu mips64-softmmu ppc-softmmu riscv32-softmmu sh4-softmmu sparc-softmmu xtensa-softmmu $CROSS_SKIP_TARGETS"
Signature · 1 line
2.45.2
Re: [PATCH v2 12/15] system: Remove support for CRIS target
Quoted 12 lines · Philippe Mathieu-Daudé
We are about to remove the CRIS target, so remove the sysemu part. This remove the CRIS 'none' machine.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- configs/devices/cris-softmmu/default.mak | 1 - configs/targets/cris-softmmu.mak | 1 - qapi/machine.json | 2 +- include/sysemu/arch_init.h | 1 - .gitlab-ci.d/buildtest.yml | 2 +- .gitlab-ci.d/crossbuild-template.yml | 2 +- 6 files changed, 3 insertions(+), 6 deletions(-)
Quoted 2 lines
delete mode 100644 configs/devices/cris-softmmu/default.mak delete mode 100644 configs/targets/cris-softmmu.mak
PATCH v2 13/15 target/cris: Remove the deprecated CRIS target
In reply to Philippe Mathieu-DaudéThe CRIS target is deprecated since v9.0 (commit c7bbef40234 "docs: mark CRIS support as deprecated").
--- MAINTAINERS | 1 - docs/about/deprecated.rst | 8 - docs/about/emulation.rst | 4 - docs/about/removed-features.rst | 7 + include/exec/poison.h | 1 - target/cris/cpu-param.h | 16 - target/cris/cpu-qom.h | 32 - target/cris/cpu.h | 286 --- target/cris/crisv10-decode.h | 112 - target/cris/crisv32-decode.h | 133 -- target/cris/helper.h | 23 - target/cris/mmu.h | 22 - target/cris/opcode-cris.h | 355 --- target/cris/cpu.c | 323 --- target/cris/gdbstub.c | 127 -- target/cris/helper.c | 287 --- target/cris/machine.c | 93 - target/cris/mmu.c | 356 --- target/cris/op_helper.c | 580 ----- target/cris/translate.c | 3252 --------------------------- tests/qtest/machine-none-test.c | 1 - fpu/softfloat-specialize.c.inc | 4 +- target/cris/translate_v10.c.inc | 1262 ----------- scripts/coverity-scan/COMPONENTS.md | 3 - target/Kconfig | 1 - target/cris/Kconfig | 2 - target/cris/meson.build | 17 - target/meson.build | 1 - tests/data/qobject/qdict.txt | 6 - 29 files changed, 9 insertions(+), 7306 deletions(-) delete mode 100644 target/cris/cpu-param.h delete mode 100644 target/cris/cpu-qom.h delete mode 100644 target/cris/cpu.h delete mode 100644 target/cris/crisv10-decode.h delete mode 100644 target/cris/crisv32-decode.h delete mode 100644 target/cris/helper.h delete mode 100644 target/cris/mmu.h delete mode 100644 target/cris/opcode-cris.h delete mode 100644 target/cris/cpu.c delete mode 100644 target/cris/gdbstub.c delete mode 100644 target/cris/helper.c delete mode 100644 target/cris/machine.c delete mode 100644 target/cris/mmu.c delete mode 100644 target/cris/op_helper.c delete mode 100644 target/cris/translate.c delete mode 100644 target/cris/translate_v10.c.inc delete mode 100644 target/cris/Kconfig delete mode 100644 target/cris/meson.build
MAINTAINERS +0 -1
@@ -227,7 +227,6 @@ F: tests/avocado/machine_avr6.py CRIS TCG CPUs M: Edgar E. Iglesias <[email protected]> S: Maintained -F: target/cris/ F: disas/cris.c Hexagon TCG CPUs
docs/about/deprecated.rst +0 -8
@@ -206,14 +206,6 @@ in the QEMU object model anymore. ``Sun-UltraSparc-IIIi+`` and but for consistency these will get removed in a future release, too. Use ``Sun-UltraSparc-IIIi-plus`` and ``Sun-UltraSparc-IV-plus`` instead. -CRIS CPU architecture (since 9.0) -''''''''''''''''''''''''''''''''' - -The CRIS architecture was pulled from Linux in 4.17 and the compiler -is no longer packaged in any distro making it harder to run the -``check-tcg`` tests. Unless we can improve the testing situation there -is a chance the code will bitrot without anyone noticing. - System emulator machines ------------------------
docs/about/emulation.rst +0 -4
@@ -26,10 +26,6 @@ depending on the guest architecture. - :ref:`Yes<AVR-System-emulator>` - No - 8 bit micro controller, often used in maker projects - * - Cris - - Yes - - Yes - - Embedded RISC chip developed by AXIS * - Hexagon - No - Yes
docs/about/removed-features.rst +7 -0
@@ -889,6 +889,13 @@ Nios II CPU (removed in 9.1) QEMU Nios II architecture was orphan; Intel has EOL'ed the Nios II processor IP (see `Intel discontinuance notification`_). +CRIS CPU architecture (removed in 9.2) +'''''''''''''''''''''''''''''''''''''' + +The CRIS architecture was pulled from Linux in 4.17 and the compiler +was no longer packaged in any distro making it harder to run the +``check-tcg`` tests. + System accelerators -------------------
include/exec/poison.h +0 -1
@@ -11,7 +11,6 @@#pragma GCC poison TARGET_AARCH64#pragma GCC poison TARGET_ALPHA#pragma GCC poison TARGET_ARM -#pragma GCC poison TARGET_CRIS#pragma GCC poison TARGET_HEXAGON#pragma GCC poison TARGET_HPPA#pragma GCC poison TARGET_LOONGARCH64
target/cris/cpu-param.h deleted +0 -16
@@ -1,16 +0,0 @@ -/* -* CRIS cpu parameters for qemu. -* -* Copyright (c) 2007 AXIS Communications AB -* SPDX-License-Identifier: LGPL-2.0+ -*/ - -#ifndef CRIS_CPU_PARAM_H -#define CRIS_CPU_PARAM_H - -#define TARGET_LONG_BITS 32 -#define TARGET_PAGE_BITS 13 -#define TARGET_PHYS_ADDR_SPACE_BITS 32 -#define TARGET_VIRT_ADDR_SPACE_BITS 32 - -#endif
target/cris/cpu-qom.h deleted +0 -32
@@ -1,32 +0,0 @@ -/* -* QEMU CRIS CPU QOM header (target agnostic) -* -* Copyright (c) 2012 SUSE LINUX Products GmbH -* -* 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> -*/ -#ifndef QEMU_CRIS_CPU_QOM_H -#define QEMU_CRIS_CPU_QOM_H - -#include "hw/core/cpu.h" - -#define TYPE_CRIS_CPU "cris-cpu" - -OBJECT_DECLARE_CPU_TYPE(CRISCPU, CRISCPUClass, CRIS_CPU) - -#define CRIS_CPU_TYPE_SUFFIX "-" TYPE_CRIS_CPU -#define CRIS_CPU_TYPE_NAME (name) (name CRIS_CPU_TYPE_SUFFIX) - -#endif
target/cris/cpu.h deleted +0 -286
286 lines not on this page · raw message
target/cris/crisv10-decode.h deleted +0 -112
112 lines not on this page · raw message
target/cris/crisv32-decode.h deleted +0 -133
133 lines not on this page · raw message
target/cris/helper.h deleted +0 -23
@@ -1,23 +0,0 @@ -DEF_HELPER_2(raise_exception, noreturn, env, i32) -DEF_HELPER_2(tlb_flush_pid, void, env, i32) -DEF_HELPER_2(spc_write, void, env, i32) -DEF_HELPER_1(rfe, void, env) -DEF_HELPER_1(rfn, void, env) - -DEF_HELPER_3(movl_sreg_reg, void, env, i32, i32) -DEF_HELPER_3(movl_reg_sreg, void, env, i32, i32) - -DEF_HELPER_FLAGS_4(btst, TCG_CALL_NO_SE, i32, env, i32, i32, i32) - -DEF_HELPER_FLAGS_4(evaluate_flags_muls, TCG_CALL_NO_SE, i32, env, i32, i32, i32) -DEF_HELPER_FLAGS_4(evaluate_flags_mulu, TCG_CALL_NO_SE, i32, env, i32, i32, i32) -DEF_HELPER_FLAGS_5 (evaluate_flags_mcp,TCG_CALL_NO_SE , i32, env, - i32, i32, i32, i32) -DEF_HELPER_FLAGS_5 (evaluate_flags_alu_4,TCG_CALL_NO_SE , i32, env, - i32, i32, i32, i32) -DEF_HELPER_FLAGS_5 (evaluate_flags_sub_4,TCG_CALL_NO_SE , i32, env, - i32, i32, i32, i32) -DEF_HELPER_FLAGS_3(evaluate_flags_move_4, TCG_CALL_NO_SE, i32, env, i32, i32) -DEF_HELPER_FLAGS_3(evaluate_flags_move_2, TCG_CALL_NO_SE, i32, env, i32, i32) -DEF_HELPER_1(evaluate_flags, void, env) -DEF_HELPER_1 (top_evaluate_flags, void, env)
target/cris/mmu.h deleted +0 -22
@@ -1,22 +0,0 @@ -#ifndef TARGET_CRIS_MMU_H -#define TARGET_CRIS_MMU_H - -#define CRIS_MMU_ERR_EXEC 0 -#define CRIS_MMU_ERR_READ 1 -#define CRIS_MMU_ERR_WRITE 2 -#define CRIS_MMU_ERR_FLUSH 3 - -struct cris_mmu_result -{ -uint32_t phy; -int prot; -int bf_vec; -}; - -void cris_mmu_init (CPUCRISState *env); -void cris_mmu_flush_pid (CPUCRISState *env,uint32_t pid); -int cris_mmu_translate (struct cris_mmu_result *res, -CPUCRISState *env,uint32_t vaddr, -MMUAccessType access_type,int mmu_idx,int debug); - -#endif
target/cris/opcode-cris.h deleted +0 -355
355 lines not on this page · raw message
target/cris/cpu.c deleted +0 -323
323 lines not on this page · raw message
target/cris/gdbstub.c deleted +0 -127
127 lines not on this page · raw message
target/cris/helper.c deleted +0 -287
287 lines not on this page · raw message
target/cris/machine.c deleted +0 -93
93 lines not on this page · raw message
target/cris/mmu.c deleted +0 -356
356 lines not on this page · raw message
target/cris/op_helper.c deleted +0 -580
580 lines not on this page · raw message
target/cris/translate.c deleted +0 -3252
204 lines not on this page · raw message
target/cris/translate_v10.c.inc deleted +0 -1262
1,262 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.45.2
Part of the diff is not shown here. View the raw message.
Quoted 27 lines · Philippe Mathieu-Daudé
The CRIS target is deprecated since v9.0 (commit
c7bbef40234"docs: mark CRIS support as deprecated").Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- MAINTAINERS | 1 - docs/about/deprecated.rst | 8 - docs/about/emulation.rst | 4 - docs/about/removed-features.rst | 7 + include/exec/poison.h | 1 - target/cris/cpu-param.h | 16 - target/cris/cpu-qom.h | 32 - target/cris/cpu.h | 286 --- target/cris/crisv10-decode.h | 112 - target/cris/crisv32-decode.h | 133 -- target/cris/helper.h | 23 - target/cris/mmu.h | 22 - target/cris/opcode-cris.h | 355 --- target/cris/cpu.c | 323 --- target/cris/gdbstub.c | 127 -- target/cris/helper.c | 287 --- target/cris/machine.c | 93 - target/cris/mmu.c | 356 --- target/cris/op_helper.c | 580 ----- target/cris/translate.c | 3252 --------------------------- tests/qtest/machine-none-test.c | 1 - fpu/softfloat-specialize.c.inc | 4 +-
Quoted 8 lines
target/cris/translate_v10.c.inc | 1262 ----------- scripts/coverity-scan/COMPONENTS.md | 3 - target/Kconfig | 1 - target/cris/Kconfig | 2 - target/cris/meson.build | 17 - target/meson.build | 1 - tests/data/qobject/qdict.txt | 6 - 29 files changed, 9 insertions(+), 7306 deletions(-)
PATCH v2 14/15 disas: Remove CRIS disassembler
In reply to Philippe Mathieu-DaudéWe just removed the CRIS target, the disassembler is now dead code.
--- MAINTAINERS | 5 - meson.build | 1 - include/disas/dis-asm.h | 6 - include/exec/poison.h | 1 - disas/cris.c | 2863 --------------------------------------- disas/meson.build | 1 - 6 files changed, 2877 deletions(-) delete mode 100644 disas/cris.c
MAINTAINERS +0 -5
@@ -224,11 +224,6 @@ F: gdb-xml/avr-cpu.xml F: target/avr/ F: tests/avocado/machine_avr6.py -CRIS TCG CPUs -M: Edgar E. Iglesias <[email protected]> -S: Maintained -F: disas/cris.c - Hexagon TCG CPUs M: Brian Cain <[email protected]> S: Supported
meson.build +0 -1
@@ -3045,7 +3045,6 @@ config_target_mak = {} disassemblers = { 'alpha' : ['CONFIG_ALPHA_DIS'], 'avr' : ['CONFIG_AVR_DIS'], - 'cris' : ['CONFIG_CRIS_DIS'], 'hexagon' : ['CONFIG_HEXAGON_DIS'], 'hppa' : ['CONFIG_HPPA_DIS'], 'i386' : ['CONFIG_I386_DIS'],
include/disas/dis-asm.h +0 -6
@@ -232,10 +232,6 @@ enum bfd_architecture#define bfd_mach_avrxmega5 105#define bfd_mach_avrxmega6 106#define bfd_mach_avrxmega7 107 - bfd_arch_cris, /* Axis CRIS */ -#define bfd_mach_cris_v0_v10 255 -#define bfd_mach_cris_v32 32 -#define bfd_mach_cris_v10_v32 1032 bfd_arch_microblaze,/* Xilinx MicroBlaze. */ bfd_arch_moxie,/* The Moxie core. */ bfd_arch_ia64, /* HP/Intel ia64 */
@@ -448,8 +444,6 @@ int print_insn_w65 (bfd_vma, disassemble_info*);int print_insn_d10v (bfd_vma ,disassemble_info *);int print_insn_v850 (bfd_vma ,disassemble_info *);int print_insn_tic30 (bfd_vma ,disassemble_info *); -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_xtensa (bfd_vma ,disassemble_info *);
include/exec/poison.h +0 -1
@@ -63,7 +63,6 @@#pragma GCC poison CPU_INTERRUPT_TGT_INT_2#pragma GCC poison CONFIG_ALPHA_DIS -#pragma GCC poison CONFIG_CRIS_DIS#pragma GCC poison CONFIG_HPPA_DIS#pragma GCC poison CONFIG_I386_DIS#pragma GCC poison CONFIG_HEXAGON_DIS
disas/cris.c deleted +0 -2863
2,863 lines not on this page · raw message
disas/meson.build +0 -1
@@ -1,5 +1,4 @@ common_ss.add(when: 'CONFIG_ALPHA_DIS', if_true: files('alpha.c')) -common_ss.add(when: 'CONFIG_CRIS_DIS', if_true: files('cris.c')) common_ss.add(when: 'CONFIG_HEXAGON_DIS', if_true: files('hexagon.c')) common_ss.add(when: 'CONFIG_HPPA_DIS', if_true: files('hppa.c')) common_ss.add(when: 'CONFIG_M68K_DIS', if_true: files('m68k.c'))
Signature · 1 line
2.45.2
Re: [PATCH v2 14/15] disas: Remove CRIS disassembler
Quoted 11 lines · Philippe Mathieu-Daudé
We just removed the CRIS target, the disassembler is now dead code.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- MAINTAINERS | 5 - meson.build | 1 - include/disas/dis-asm.h | 6 - include/exec/poison.h | 1 - disas/cris.c | 2863 --------------------------------------- disas/meson.build | 1 - 6 files changed, 2877 deletions(-)
Quoted 1 line
delete mode 100644
disas/cris.c
Re: [PATCH v2 14/15] disas: Remove CRIS disassembler
In reply to Philippe Mathieu-DaudéQuoted 14 lines · Philippe Mathieu-Daudé
include/disas/dis-asm.h +0
-4@@ -232,10 +232,6 @@ enum bfd_architecture#define bfd_mach_avrxmega5 105#define bfd_mach_avrxmega6 106#define bfd_mach_avrxmega7 107 - bfd_arch_cris, /* Axis CRIS */ -#define bfd_mach_cris_v0_v10 255 -#define bfd_mach_cris_v32 32 -#define bfd_mach_cris_v10_v32 1032 bfd_arch_microblaze,/* Xilinx MicroBlaze. */ bfd_arch_moxie,/* The Moxie core. */ bfd_arch_ia64, /* HP/Intel ia64 */
include/disas/dis-asm.h int print_insn_w65 (bfd_vma, disassemble_info*); · line 449
Quoted 8 lines
include/disas/dis-asm.h +0
-2@@ -448,8 +444,6 @@ int print_insn_w65 (bfd_vma, disassemble_info*);int print_insn_d10v (bfd_vma ,disassemble_info *);int print_insn_v850 (bfd_vma ,disassemble_info *);int print_insn_tic30 (bfd_vma ,disassemble_info *); -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_xtensa (bfd_vma ,disassemble_info *);
This is probably worth leaving alone, since it's all imported. There is lots of other stuff in there (even in these hunks) that is not relevant to qemu.
r~
Re: [PATCH v2 14/15] disas: Remove CRIS disassembler
Quoted 21 lines · Richard Henderson
Quoted 20 lines · Philippe Mathieu-Daudé
include/disas/dis-asm.h +0
-4@@ -232,10 +232,6 @@ enum bfd_architecture #define bfd_mach_avrxmega5 105 #define bfd_mach_avrxmega6 106 #define bfd_mach_avrxmega7 107 - bfd_arch_cris, /* Axis CRIS */ -#define bfd_mach_cris_v0_v10 255 -#define bfd_mach_cris_v32 32 -#define bfd_mach_cris_v10_v32 1032
bfd_arch_microblaze, /* Xilinx MicroBlaze. */ bfd_arch_moxie, /* The Moxie core. */ bfd_arch_ia64, /* HP/Intel ia64 */include/disas/dis-asm.h +0
-2@@ -448,8 +444,6 @@ int print_insn_w65 (bfd_vma, disassemble_info*); int print_insn_d10v (bfd_vma, disassemble_info*); int print_insn_v850 (bfd_vma, disassemble_info*); int print_insn_tic30 (bfd_vma, disassemble_info*); -int print_insn_crisv32 (bfd_vma, disassemble_info*); -int print_insn_crisv10 (bfd_vma, disassemble_info*);
Quoted 8 lines
Quoted 3 lines
include/disas/dis-asm.h +0
-0int print_insn_microblaze (bfd_vma, disassemble_info*); int print_insn_ia64 (bfd_vma, disassemble_info*);int print_insn_xtensa (
bfd_vma, disassemble_info*);This is probably worth leaving alone, since it's all imported. There is lots of other stuff in there (even in these hunks) that is not relevant to qemu.
This is no more an import, see addition in commit aae1746c72 ("target/loongarch: Add disassembler") and removals in 9992f57978..333f944c15 6c3014858c:
. 6c3014858c target/nios2: Remove the deprecated Nios II target . 9992f57978 disas: Remove old libopcode s390 disassembler . 333f944c15 disas: Remove old libopcode ppc disassembler . 457248a54c disas: Remove old libopcode i386 disassembler . 82f96346e1 disas: Remove old libopcode arm disassembler
I don't mind discarding this patch, but I'd like to know how we can be consistent with this file and the future removals.
Thanks,
Phil.
PATCH v2 15/15 seccomp: Remove check for CRIS host
In reply to Philippe Mathieu-DaudéAs per the deprecation notice in commit c7bbef4023:
The CRIS architecture was pulled from Linux in 4.17 and the compiler is no longer packaged in any distro [...].
It is now unlikely QEMU is build on CRIS host.
--- system/qemu-seccomp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
system/qemu-seccomp.c +1 -1
@@ -50,7 +50,7 @@ const struct scmp_arg_cmp sched_setscheduler_arg[] = {* See 'NOTES' in 'man 2 clone' - s390 & cross have 'flags' in * different position to other architectures */ -#if defined(HOST_S390X ) || defined(HOST_S390 ) || defined(HOST_CRIS ) +#if defined(HOST_S390X ) || defined(HOST_S390 )#define CLONE_FLAGS_ARG 1#else #define CLONE_FLAGS_ARG 0
Signature · 1 line
2.45.2
Re: [PATCH v2 15/15] seccomp: Remove check for CRIS host
Quoted 17 lines · Philippe Mathieu-Daudé
As per the deprecation notice in commit
c7bbef4023:The CRIS architecture was pulled from Linux in 4.17 and the compiler is no longer packaged in any distro [...].
It is now unlikely QEMU is build on CRIS host.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- system/qemu-seccomp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)system/qemu-seccomp.c +0
-0
system/qemu-seccomp.c const struct scmp_arg_cmp sched_setscheduler_arg[] = { · line 56
Quoted 8 lines
system/qemu-seccomp.c +1
-1@@ -50,7 +50,7 @@ const struct scmp_arg_cmp sched_setscheduler_arg[] = {* See 'NOTES' in 'man 2 clone' - s390 & cross have 'flags' in * different position to other architectures */ -#if defined(HOST_S390X ) || defined(HOST_S390 ) || defined(HOST_CRIS ) +#if defined(HOST_S390X ) || defined(HOST_S390 )#define CLONE_FLAGS_ARG 1#else #define CLONE_FLAGS_ARG 0
Re: [PATCH v2 15/15] seccomp: Remove check for CRIS host
In reply to Philippe Mathieu-DaudéQuoted 18 lines · Philippe Mathieu-Daudé
As per the deprecation notice in commit
c7bbef4023:The CRIS architecture was pulled from Linux in 4.17 and the compiler is no longer packaged in any distro [...].
It is now unlikely QEMU is build on CRIS host.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>Reviewed-by Thomas Huth <[email protected]>--- system/qemu-seccomp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)system/qemu-seccomp.c +0
-0
system/qemu-seccomp.c const struct scmp_arg_cmp sched_setscheduler_arg[] = { · line 51
Quoted 2 lines
system/qemu-seccomp.c +0
-0@@ -50,7 +50,7 @@ const struct scmp_arg_cmp sched_setscheduler_arg[] = {* See 'NOTES' in 'man 2 clone' - s390 & cross have 'flags' in * different position to other architectures
Small nit, "cross" is a misspelling of "cris" so
s/& cross //
No need to repost, of course.
Paolo
Quoted 6 lines
system/qemu-seccomp.c +1
-1*/ -#if defined(HOST_S390X ) || defined(HOST_S390 ) || defined(HOST_CRIS ) +#if defined(HOST_S390X ) || defined(HOST_S390 )#define CLONE_FLAGS_ARG 1#else #define CLONE_FLAGS_ARG 0
Re: [PATCH v2 15/15] seccomp: Remove check for CRIS host
Quoted 24 lines · Paolo Bonzini
Quoted 18 lines · Philippe Mathieu-Daudé
As per the deprecation notice in commit
c7bbef4023:The CRIS architecture was pulled from Linux in 4.17 and the compiler is no longer packaged in any distro [...].
It is now unlikely QEMU is build on CRIS host.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>Reviewed-by Thomas Huth <[email protected]>---
system/qemu-seccomp.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)system/qemu-seccomp.c +0
-0system/qemu-seccomp.c const struct scmp_arg_cmp sched_setscheduler_arg[] = { · line 51
Quoted 2 lines
system/qemu-seccomp.c +0
-0@@ -50,7 +50,7 @@ const struct scmp_arg_cmp sched_setscheduler_arg[] = { * See 'NOTES' in 'man 2 clone' - s390 & cross have 'flags' in * different position to other architecturesSmall nit, "cross" is a misspelling of "cris" so
Quoted 1 line
s/& cross //
Funny :)
Quoted 2 lines
No need to repost, of course.
I'll correct, thanks.
Quoted 2 lines
Paolo
Quoted 8 lines · Philippe Mathieu-Daudé
Philippe Mathieu-Daudé (15):
tests/tcg: Remove CRIS libc test files
tests/tcg: Remove CRIS bare test files
buildsys: Remove CRIS cross container
linux-user: Remove support for CRIS target
hw/cris: Remove the axis-dev88 machine
hw/cris: Remove image loader helper
hw/intc: RemoveTYPE_ETRAX_FS_PICdevice
Quoted 8 lines
hw/char: Remove
TYPE_ETRAX_FS_SERIALdevice
hw/net: RemoveTYPE_ETRAX_FS_ETHdevice
hw/dma: RemoveETRAX_FSDMA device
hw/timer: RemoveTYPE_ETRAX_FS_TIMERdevice
system: Remove support for CRIS target
target/cris: Remove the deprecated CRIS target
disas: Remove CRIS disassembler
seccomp: Remove check for CRIS host
Series:
r~
Hi Edgar,
Quoted 11 lines · Philippe Mathieu-Daudé
Since v1:
- Split in smaller patches (pm215)The CRIS target is deprecated since v9.0 (commit
c7bbef40234"docs: mark CRIS support as deprecated").Remove:
- Buildsys / CI infra
- User emulation
- System emulation (axis-dev88 machine and ETRAX devices)
- Tests
You acked the deprecation commit (c7bbef4023). No objection for the removal? I'd rather have your explicit Acked-by before merging this.
Thanks,
Phil.
Quoted 16 lines
Philippe Mathieu-Daudé (15):
tests/tcg: Remove CRIS libc test files
tests/tcg: Remove CRIS bare test files
buildsys: Remove CRIS cross container
linux-user: Remove support for CRIS target
hw/cris: Remove the axis-dev88 machine
hw/cris: Remove image loader helper
hw/intc: RemoveTYPE_ETRAX_FS_PICdevice
hw/char: RemoveTYPE_ETRAX_FS_SERIALdevice
hw/net: RemoveTYPE_ETRAX_FS_ETHdevice
hw/dma: RemoveETRAX_FSDMA device
hw/timer: RemoveTYPE_ETRAX_FS_TIMERdevice
system: Remove support for CRIS target
target/cris: Remove the deprecated CRIS target
disas: Remove CRIS disassembler
seccomp: Remove check for CRIS host
Edgar E. Iglesias
Acked-byQuoted 15 lines · Philippe Mathieu-Daudé
Hi Edgar,
Quoted 11 lines · Philippe Mathieu-Daudé
Since v1:
- Split in smaller patches (pm215)The CRIS target is deprecated since v9.0 (commit
c7bbef40234"docs: mark CRIS support as deprecated").Remove:
- Buildsys / CI infra
- User emulation
- System emulation (axis-dev88 machine and ETRAX devices)
- Tests
Quoted 5 lines
You acked the deprecation commit (
c7bbef4023). No objection for the removal? I'd rather have your explicit Acked-by before merging this.
Hi Phil,
Yes, sorry, I haven't had time to review each patch but:
Cheers,
Edgar
Quoted 22 lines
Thanks,
Phil.
Quoted 16 lines
Philippe Mathieu-Daudé (15):
tests/tcg: Remove CRIS libc test files
tests/tcg: Remove CRIS bare test files
buildsys: Remove CRIS cross container
linux-user: Remove support for CRIS target
hw/cris: Remove the axis-dev88 machine
hw/cris: Remove image loader helper
hw/intc: RemoveTYPE_ETRAX_FS_PICdevice
hw/char: RemoveTYPE_ETRAX_FS_SERIALdevice
hw/net: RemoveTYPE_ETRAX_FS_ETHdevice
hw/dma: RemoveETRAX_FSDMA device
hw/timer: RemoveTYPE_ETRAX_FS_TIMERdevice
system: Remove support for CRIS target
target/cris: Remove the deprecated CRIS target
disas: Remove CRIS disassembler
seccomp: Remove check for CRIS host
Quoted 22 lines · Edgar E. Iglesias
On Mon, Sep 9, 2024 at 7:25 AM Philippe Mathieu-Daudé <[email protected] <mailto:[email protected]>> wrote:
Hi Edgar,
On 4/9/24 16:35, Philippe Mathieu-Daudé wrote:
> Since v1:
> - Split in smaller patches (pm215)
>
> The CRIS target is deprecated since v9.0 (commit >c7bbef40234"docs: mark CRIS support as deprecated"). >
> Remove:
> - Buildsys / CI infra
> - User emulation
> - System emulation (axis-dev88 machine and ETRAX devices) > - TestsYou acked the deprecation commit (
c7bbef4023). No objection for the removal? I'd rather have your explicit Acked-by before merging this.
Quoted 4 lines
Hi Phil,
Yes, sorry, I haven't had time to review each patch but:
Acked-by Edgar E. Iglesias <[email protected] <mailto:[email protected]>>
Thank you!
Quoted 9 lines
Cheers,
EdgarThanks,
Phil.
Quoted 14 lines
> Philippe Mathieu-Daudé (15):
> tests/tcg: Remove CRIS libc test files > tests/tcg: Remove CRIS bare test files > buildsys: Remove CRIS cross container > linux-user: Remove support for CRIS target > hw/cris: Remove the axis-dev88 machine > hw/cris: Remove image loader helper
> hw/intc: RemoveTYPE_ETRAX_FS_PICdevice > hw/char: RemoveTYPE_ETRAX_FS_SERIALdevice > hw/net: RemoveTYPE_ETRAX_FS_ETHdevice > hw/dma: RemoveETRAX_FSDMA device
> hw/timer: RemoveTYPE_ETRAX_FS_TIMERdevice > system: Remove support for CRIS target > target/cris: Remove the deprecated CRIS target
Series queued except patch 14:
Quoted 3 lines
> disas: Remove CRIS disassembler
> seccomp: Remove check for CRIS host