RE: Why my interrupt is not connected? qemu_irq_is_connected( ) returns false.

2022-04-01 Thread Chan Kim
Hello Peter Maydell, and all, > > If the device does try to raise its interrupt, then either you've > > wired the interrupt wrongly or else perhaps the guest never unmasked > > the interrupt in the GIC. You can singlestep into the qemu_raise_irq() > > function to see where it takes you. > > I've s

RE: Why my interrupt is not connected? qemu_irq_is_connected( ) returns false.

2022-04-01 Thread Chan Kim
Hi, Peter Maydell Thank you for the kind reply. > ...and connect its IRQ here, so of course the check in the device realize > method says "not connected". That isn't telling you anything useful. > So I added some prints. This is the result. create_uart called! pl011_init called! pl011_realize c

Re: Why my interrupt is not connected? qemu_irq_is_connected( ) returns false.

2022-04-01 Thread Peter Maydell
On Fri, 1 Apr 2022 at 10:27, Chan Kim wrote: > static void create_ab21q_axpu_device(const Ab21qMachineState *vms, > MemoryRegion *mem) > { > char *nodename; > hwaddr base = vms->memmap[AB21Q_AXPU].base; > hwaddr size = vms->memmap[AB21Q_AXPU].size; > int irq

Why my interrupt is not connected? qemu_irq_is_connected( ) returns false.

2022-04-01 Thread Chan Kim
Hello all, I'm trying to make interrupt work for a device in qemu. The machnie name is ab21q, a modified version of arm64 virt machine, and the device name is ab21q_axpu. Here are some relevant codes. I referenced pl011.c. (I switched temporarily back to qemu-5.1.0 for this test.) ** hw/a