mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
ppc: convert g_new(qemu_irq usages to g_new0
To indicate the IRQs are initially disconnected. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
c75f3c041a
commit
aa2ac1dac3
3 changed files with 3 additions and 3 deletions
|
@ -1627,7 +1627,7 @@ static void openpic_realize(DeviceState *dev, Error **errp)
|
|||
}
|
||||
|
||||
for (i = 0; i < opp->nb_cpus; i++) {
|
||||
opp->dst[i].irqs = g_new(qemu_irq, OPENPIC_OUTPUT_NB);
|
||||
opp->dst[i].irqs = g_new0(qemu_irq, OPENPIC_OUTPUT_NB);
|
||||
for (j = 0; j < OPENPIC_OUTPUT_NB; j++) {
|
||||
sysbus_init_irq(d, &opp->dst[i].irqs[j]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue