[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v1 15/16] ppc: convert g_new(qemu_irq usages to
From: |
Peter Crosthwaite |
Subject: |
Re: [Qemu-devel] [PATCH v1 15/16] ppc: convert g_new(qemu_irq usages to g_new0 |
Date: |
Fri, 15 Aug 2014 15:07:22 +1000 |
On Tue, Aug 12, 2014 at 7:26 PM, Alexander Graf <address@hidden> wrote:
>
> On 04.08.14 03:59, Peter Crosthwaite wrote:
>>
>> To indicate the IRQs are initially disconnected.
>>
>> Signed-off-by: Peter Crosthwaite <address@hidden>
>
>
> I suppose you want to convert this one too?
>
> hw/intc/i8259.c:475: irq_set = g_malloc(ISA_NUM_IRQS *
> sizeof(qemu_irq));
>
So I have figured out a catch-all for this problem. I've set it up
such that when registering the link qdev will memset the pointer to 0.
This patch (along with your new case) is still legit cleanup though
and can go via trivial seperately.
Dropped completely in V2.
Regards,
Peter
>
> Alex
>
>
- Re: [Qemu-devel] [PATCH v1 12/16] qdev: gpio: Remove qdev_init_gpio_out x1 restriction, (continued)
[Qemu-devel] [PATCH v1 14/16] ssi: xilinx_spi: Initialise CS GPIOs as NULL, Peter Crosthwaite, 2014/08/03
[Qemu-devel] [PATCH v1 15/16] ppc: convert g_new(qemu_irq usages to g_new0, Peter Crosthwaite, 2014/08/03
[Qemu-devel] [PATCH v1 16/16] sysbus: Use TYPE_DEVICE GPIO functionality, Peter Crosthwaite, 2014/08/03
Re: [Qemu-devel] [PATCH v1 00/16] GPIO/IRQ QOMification: Phase 2 - Getting rid of SYSBUS IRQs, Peter Crosthwaite, 2014/08/12
Re: [Qemu-devel] [PATCH v1 00/16] GPIO/IRQ QOMification: Phase 2 - Getting rid of SYSBUS IRQs, Alexander Graf, 2014/08/12