On 1/4/21 6:39 PM, Philippe Mathieu-Daudé wrote: > On 1/4/21 4:01 PM, Peter Maydell wrote: >> On Mon, 4 Jan 2021 at 13:59, Philippe Mathieu-Daudé <f4...@amsat.org> wrote: >>> I don't have access to OSX host. I'll see to install an aarch32 chroot and >>> keep testing (not sure what can differ from an i386 guest). >>> If I can't find anything I'll resend the same series without the Loongson-3 >>> machine, which is the single part adding QOM objects.
OK I guess I found the problem, we have: struct LoongsonMachineState { MachineState parent_obj; MemoryRegion *pio_alias; MemoryRegion *mmio_alias; MemoryRegion *ecam_alias; }; Then: static inline void loongson3_virt_devices_init(MachineState *machine, DeviceState *pic) { int i; qemu_irq irq; PCIBus *pci_bus; DeviceState *dev; MemoryRegion *mmio_reg, *ecam_reg; LoongsonMachineState *s = LOONGSON_MACHINE(machine); LoongsonMachineState is never allocated... Accessing its MR lead to BOF.