qemu-system-m68k fails whenever the option "-d cpu_reset" is specified
Host environment
- Operating system: Ubuntu 18.04.6 LTS
- OS/kernel version: Linux node 5.4.0-144-generic #161~18.04.1-Ubuntu SMP Fri Feb 10 15:55:22 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
- Architecture: x86_64
- QEMU flavor: qemu-system-m68k
- QEMU version: QEMU emulator version 7.2.92 (v8.0.0-rc2)
- QEMU command line:
./qemu-system-m68k -M q800 -kernel ../../linux-m68k/build-m68k-debian/vmlinux -nographic -d cpu_reset
Emulated/Virtualized environment
- Operating system: None
- OS/kernel version: Linux 5.5.0
- Architecture: m68k
Description of problem
When specifying the option "-d cpu_reset", the following output is generated, and QEMU eventually crashes with a Segmentation fault:
CPU Reset (CPU 0)
D0 = 00000000 A0 = 00000000 F0 = 0000 0000000000000000 ( 0)
D1 = 00000000 A1 = 00000000 F1 = 0000 0000000000000000 ( 0)
D2 = 00000000 A2 = 00000000 F2 = 0000 0000000000000000 ( 0)
D3 = 00000000 A3 = 00000000 F3 = 0000 0000000000000000 ( 0)
D4 = 00000000 A4 = 00000000 F4 = 0000 0000000000000000 ( 0)
D5 = 00000000 A5 = 00000000 F5 = 0000 0000000000000000 ( 0)
D6 = 00000000 A6 = 00000000 F6 = 0000 0000000000000000 ( 0)
D7 = 00000000 A7 = 00000000 F7 = 0000 0000000000000000 ( 0)
PC = 00000000 qemu: fatal: Bad CC_OP 0
D0 = 00000000 A0 = 00000000 F0 = 0000 0000000000000000 ( 0)
D1 = 00000000 A1 = 00000000 F1 = 0000 0000000000000000 ( 0)
D2 = 00000000 A2 = 00000000 F2 = 0000 0000000000000000 ( 0)
D3 = 00000000 A3 = 00000000 F3 = 0000 0000000000000000 ( 0)
D4 = 00000000 A4 = 00000000 F4 = 0000 0000000000000000 ( 0)
D5 = 00000000 A5 = 00000000 F5 = 0000 0000000000000000 ( 0)
D6 = 00000000 A6 = 00000000 F6 = 0000 0000000000000000 ( 0)
D7 = 00000000 A7 = 00000000 F7 = 0000 0000000000000000 ( 0)
...
D0 = 00000000 A0 = 00000000 F0 = 0000 0000000000000000 ( 0)
D1 = 00000000 A1 = 00000000 F1 = 0000 0000000000000000 ( 0)
D2 = 00000000 A2 = 00000000 F2 = 0000 0000000000000000 ( 0)
D3 = 00000000 A3 = 00000000 F3 = 0000 0000000000000000 ( 0)
D4 = 00000000 A4 = 00000000 F4 = 0000 0000000000000000 ( 0)
D5 = 00000000 A5 = 00000000 F5 = 0000 0000000000000000 ( 0)
D6 = 00000000 A6 = 00000000 F6 = 0000 0000000000000000 ( 0)
D7 = 00000000 A7 = 00000000 F7 = 0000 0000000000000000 ( 0)
PC = 00000000 qemu: fatal: Bad CC_OP 0
Segmentation fault (core dumped)
This also happens with the other m68k machine types.
Steps to reproduce
- Run QEMU with the given command line.
Additional information
Edited by Kars de Jong