Re: [PATCH 1/2] hw: Move declaration of IRQState to header and add init function

2024-07-01 Thread Peter Maydell
On Sat, 29 Jun 2024 at 21:01, BALATON Zoltan wrote: > > To allow embedding a qemu_irq in a struct move its definition to the > header and add a function to init it in place without allocating it. > > Signed-off-by: BALATON Zoltan Yes, I think this makes sense, and I'm not quite sure why we don't

[PATCH 1/2] hw: Move declaration of IRQState to header and add init function

2024-06-29 Thread BALATON Zoltan
To allow embedding a qemu_irq in a struct move its definition to the header and add a function to init it in place without allocating it. Signed-off-by: BALATON Zoltan --- hw/core/irq.c| 25 +++-- include/hw/irq.h | 18 ++ 2 files changed, 29 insertions(+)