[PATCH v2 2/3] hw/mips/mips_int: Use qdev gpio rather than qemu_allocate_irqs()

2020-05-12 Thread Philippe Mathieu-Daudé
Switch to using the qdev gpio API which is preferred over qemu_allocate_irqs(). One step to eventually deprecate and remove qemu_allocate_irqs() one day. Patch created mechanically using spatch with this script inspired from commit d6ef883d9d7: @@ typedef qemu_irq; identifier irqs, handler;

Re: [PATCH v2 2/3] hw/mips/mips_int: Use qdev gpio rather than qemu_allocate_irqs()

2020-05-14 Thread Peter Maydell
On Tue, 12 May 2020 at 08:48, Philippe Mathieu-Daudé wrote: > > Switch to using the qdev gpio API which is preferred over > qemu_allocate_irqs(). One step to eventually deprecate and > remove qemu_allocate_irqs() one day. > diff --git a/hw/mips/mips_int.c b/hw/mips/mips_int.c > index 796730b11d..

Re: [PATCH v2 2/3] hw/mips/mips_int: Use qdev gpio rather than qemu_allocate_irqs()

2020-05-14 Thread Philippe Mathieu-Daudé
On 5/14/20 3:24 PM, Peter Maydell wrote: On Tue, 12 May 2020 at 08:48, Philippe Mathieu-Daudé wrote: Switch to using the qdev gpio API which is preferred over qemu_allocate_irqs(). One step to eventually deprecate and remove qemu_allocate_irqs() one day. diff --git a/hw/mips/mips_int.c b/hw