qemu-devel
[Top][All Lists]
Advanced

[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
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]