summaryrefslogtreecommitdiffstats
path: root/hw/ppc/e500.c
diff options
context:
space:
mode:
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>2014-08-15 01:15:10 -0700
committerMichael Tokarev <mjt@tls.msk.ru>2014-08-15 18:54:50 +0400
commitaa2ac1dac3d27b412e2dba4cde38724446751344 (patch)
treed2b6184d6f08ec6d0e83a1d3b82430834540f26e /hw/ppc/e500.c
parentc75f3c041aff0d6192049860a8f7b4db40ec0603 (diff)
downloadhqemu-aa2ac1dac3d27b412e2dba4cde38724446751344.zip
hqemu-aa2ac1dac3d27b412e2dba4cde38724446751344.tar.gz
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>
Diffstat (limited to 'hw/ppc/e500.c')
-rw-r--r--hw/ppc/e500.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c
index 1a5b30d..16c85ef 100644
--- a/hw/ppc/e500.c
+++ b/hw/ppc/e500.c
@@ -583,7 +583,7 @@ static qemu_irq *ppce500_init_mpic(PPCE500Params *params, MemoryRegion *ccsr,
SysBusDevice *s;
int i;
- mpic = g_new(qemu_irq, 256);
+ mpic = g_new0(qemu_irq, 256);
if (kvm_enabled()) {
QemuOpts *machine_opts = qemu_get_machine_opts();
OpenPOWER on IntegriCloud