[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/8] ppc: Convert PPC UIC to a QOM device
From: |
Peter Maydell |
Subject: |
Re: [PATCH 2/8] ppc: Convert PPC UIC to a QOM device |
Date: |
Sat, 12 Dec 2020 18:33:14 +0000 |
On Sat, 12 Dec 2020 at 18:27, BALATON Zoltan <balaton@eik.bme.hu> wrote:
>
> On Sat, 12 Dec 2020, Peter Maydell wrote:
> > Currently the PPC UIC ("Universal Interrupt Controller") is implemented
> > as a non-QOM device in ppc4xx_devs.c. Convert it to a proper QOM device
> > in hw/intc.
> >
> > The ppcuic_init() function is retained for the moment with its current
> > interface; in subsequent commits this will be tidied up to avoid the
> > allocation of an irq array.
> >
> > This conversion adds VMState support.
> >
> > It leaves the LOG_UIC() macro as-is to maximise the extent to which
> > this is simply code-movement rather than a rewrite (in new code it
> > would be better to use tracepoints).
> >
> > The default property values for dcr-base and use-vectors are set to
> > match those use by most of our boards with a UIC.
>
> Would this be easier to review if it's split into two patches, first doing
> the conversion in place, then another just doing code moving? Maybe we
> could spot some problem that way easier?
That didn't really feel very feasible to me. You can see that
mostly it's code motion using the git diff --color-moved option
if you look at the commit.
thanks
-- PMM
- [PATCH 0/8] hw/ppc: Convert UIC device to QOM, Peter Maydell, 2020/12/11
- [PATCH 1/8] hw/ppc/ppc4xx_devs: Make code style fixes to UIC code, Peter Maydell, 2020/12/11
- [PATCH 2/8] ppc: Convert PPC UIC to a QOM device, Peter Maydell, 2020/12/11
- Re: [PATCH 2/8] ppc: Convert PPC UIC to a QOM device, Edgar E. Iglesias, 2020/12/13
- Re: [PATCH 2/8] ppc: Convert PPC UIC to a QOM device, David Gibson, 2020/12/14
- Re: [PATCH 2/8] ppc: Convert PPC UIC to a QOM device, BALATON Zoltan, 2020/12/14
- [PATCH 3/8] hw/ppc/virtex_ml507: Drop use of ppcuic_init(), Peter Maydell, 2020/12/11
- [PATCH 6/8] hw/ppc: Delete unused ppc405cr_init() code, Peter Maydell, 2020/12/11
- [PATCH 4/8] hw/ppc/ppc440_bamboo: Drop use of ppcuic_init(), Peter Maydell, 2020/12/11