On Mon, 11 May 2026 at 12:59, Vineet Agarwal <[email protected]> wrote: > > Calling qdev_get_machine() from fsl_imx8mm_init() can trigger > an assertion failure because the machine may not be created yet. > > Reproducer: > > ./qemu-system-aarch64 -S -display none \ > -M virt -device fsl-imx8mm,help > > This hits: > > ../hw/core/qdev.c:844: Object *qdev_get_machine(void): > Assertion `dev' failed. > > Move the CPU initialization into realize(), where accessing the > machine state is safe. > > Signed-off-by: Vineet Agarwal <[email protected]>
This is the same fix we put in for fsl-imx8mp under commit b67d0bcdd. I've applied it to target-arm.next, with a note added to the commit message about that other commit. thanks -- PMM
