Skip to content

QEMU TCG crashes when running on windows

Host environment

  • Operating system: Windows 10 22H2
  • OS/kernel version: NA
  • Architecture: x86
  • QEMU flavor: qemu-system-aarch64
  • QEMU version: v8.0.0-rc2
  • QEMU command line: qemu-system-aarch64.exe -M virt -cpu cortex-a53 -smp 4 -m 1G -nographic -serial mon:stdio -kernel Image -initrd rootfs.cpio.lz4 -append console=ttyAMA0

Emulated/Virtualized environment

  • Operating system: linux buildroot
  • OS/kernel version: linux-6.1.12
  • Architecture: arm64

Description of problem

QEMU crashes immediately after startup and shows an assertion failure:

ERROR:C:/msys64/home/xxx/qemu/tcg/i386/tcg-target.c.inc:1085:tcg_out_addi_ptr: assertion failed: (64 == 32)

Bail out! ERROR:C:/msys64/home/xxx/qemu/tcg/i386/tcg-target.c.inc:1085:tcg_out_addi_ptr: assertion failed: (64 == 32)

Steps to reproduce

NA

Additional information

  1. This problem only occurs when the host system is windows, and the same QEMU configuration does not have this problem when the host system is Linux.
  2. This problem is related to the -smp parameter of QEMU. If the smp parameter is 1, this problem will not occur.
  3. This problem does not exist in the QEMU version 7.2.
Edited by li xingyuan
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information