On Wed, 19 May 2021 at 21:09, Philippe Mathieu-Daudé <f4...@amsat.org> wrote: > > When using a binary built using --without-default-devices we get: > > $ qemu-system-arm -M xilinx-zynq-a9 > ** > ERROR:qom/object.c:714:object_new_with_type: assertion failed: (type != > NULL) > Bail out! ERROR:qom/object.c:714:object_new_with_type: assertion failed: > (type != NULL) > > Looking at the stack trace: > > (gdb) bt > #3 0x00007ffff6e229ff in g_assertion_message_expr () at > /lib64/libglib-2.0.so.0 > #4 0x00005555558d3f01 in object_new_with_type (type=<optimized out>) at > qom/object.c:714 > #5 0x00005555558d3f59 in object_new > (typename=typename@entry=0x555555ad4545 "usb-chipidea") at qom/object.c:747 > #6 0x00005555558cd526 in qdev_new (name=name@entry=0x555555ad4545 > "usb-chipidea") at hw/core/qdev.c:153 > #7 0x0000555555739fc6 in sysbus_create_varargs > (name=name@entry=0x555555ad4545 "usb-chipidea", addr=addr@entry=3758104576) > at hw/core/sysbus.c:234 > #8 0x0000555555796b57 in sysbus_create_simple (irq=<optimized out>, > addr=3758104576, name=0x555555ad4545 "usb-chipidea") at > include/hw/sysbus.h:104 > #9 zynq_init (machine=0x555555de07a0) at hw/arm/xilinx_zynq.c:254 > #10 0x000055555573707c in machine_run_board_init > (machine=machine@entry=0x555555de07a0) at hw/core/machine.c:1238 > > When replacing the xlnx,ps7-usb device by the IDEA one in commit > 616ec12d0fc ("hw/arm/xilinx_zynq: Fix USB port instantiation") we > forgot to add the Kconfig dependency on the new device. Do it now. > > Fixes: 616ec12d0fc ("hw/arm/xilinx_zynq: Fix USB port instantiation") > Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org>
Reviewed-by: Peter Maydell <peter.mayd...@linaro.org> thanks -- PMM