qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v5 3/4] hw/intc/exynos4210: replace 'qemu_split_irq' in combi


From: Zongyuan Li
Subject: Re: [PATCH v5 3/4] hw/intc/exynos4210: replace 'qemu_split_irq' in combiner and gic
Date: Sat, 16 Apr 2022 21:02:19 +0800

I agree. And Peter has submit a new patch to refactor the IRQ code in
exynos4210, I will rebase
this code onto his patch and abandon patch-3 in this set.

Thanks for reviewing.
Li

On Fri, Apr 15, 2022 at 4:47 PM Damien Hedde <damien.hedde@greensocs.com> wrote:
>
>
>
> On 4/2/22 04:32, Zongyuan Li wrote:
> > On Fri, Apr 1, 2022 at 9:17 PM Damien Hedde <damien.hedde@greensocs.com> 
> > wrote:
> >>
> >>
> >>
> >> On 3/24/22 19:15, Zongyuan Li wrote:
> >>> Signed-off-by: Zongyuan Li <zongyuan.li@smartx.com>
> >>> ---
> >>>    hw/arm/ .c           | 26 +++++++++++
> >>>    hw/intc/exynos4210_combiner.c | 81 +++++++++++++++++++++++++++--------
> >>>    hw/intc/exynos4210_gic.c      | 36 +++++++++++++---
> >>>    include/hw/arm/exynos4210.h   | 11 ++---
> >>>    include/hw/core/split-irq.h   |  5 +--
> >>>    5 files changed, 126 insertions(+), 33 deletions(-)
> >>>
> >>> diff --git a/include/hw/core/split-irq.h b/include/hw/core/split-irq.h
> >>> index ff8852f407..eb485dd7a6 100644
> >>> --- a/include/hw/core/split-irq.h
> >>> +++ b/include/hw/core/split-irq.h
> >>> @@ -42,9 +42,6 @@
> >>>
> >>>    #define MAX_SPLIT_LINES 16
> >>>
> >>> -
> >>> -OBJECT_DECLARE_SIMPLE_TYPE(SplitIRQ, SPLIT_IRQ)
> >>> -
> >>>    struct SplitIRQ {
> >>>        DeviceState parent_obj;
> >>>
> >>> @@ -52,4 +49,6 @@ struct SplitIRQ {
> >>>        uint16_t num_lines;
> >>>    };
> >>>
> >>> +OBJECT_DECLARE_SIMPLE_TYPE(SplitIRQ, SPLIT_IRQ)
> >>> +
> >>>    #endif
> >
> > Some language servers may complain if we use forward declaration of
> > struct and typedef.
> >
> > Regards,
> > Li
>
> Isn't that C-standard compliant code ?
> We have that pattern all over the place in qemu.
>
> Anyway I don't think that bit should be included in this patch about
> exynos4210.
>
> --
> Damien



reply via email to

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