qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] hw/ppc: Convert UIC device to QOM
@ 2021-01-08 17:12 Peter Maydell
  2021-01-08 17:12 ` [PATCH v2 1/4] hw/ppc/sam460ex: Drop use of ppcuic_init() Peter Maydell
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Peter Maydell @ 2021-01-08 17:12 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-ppc, Greg Kurz, David Gibson

This patchseries converts the PPC UIC "Universal Interrupt
Controller" to a QOM device.  My main reason for doing it is that
this fixes a couple of long-standing trivial Coverity issues -- the
current ppcuic_init() function allocates an array of qemu_irqs which
the callers then leak.  (The leak is trivial because it happens once
when QEMU starts.)

The first half of v1 is in master now, so this is just a
respin of the last four patches.

Changes v1->v2:
 * fixed the bug in the sam460ex conversion handling of CINT
   (tested that this now boots AROS OK to a desktop)
 * other minor code style tweaks to patch 1 as per review

thanks
-- PMM

Peter Maydell (4):
  hw/ppc/sam460ex: Drop use of ppcuic_init()
  hw/ppc: Delete unused ppc405cr_init() code
  hw/ppc/ppc405_uc: Drop use of ppcuic_init()
  hw/ppc: Remove unused ppcuic_init()

 hw/ppc/ppc405.h           |   8 +-
 include/hw/intc/ppc-uic.h |   7 +
 include/hw/ppc/ppc4xx.h   |   9 -
 hw/ppc/ppc405_boards.c    |   8 +-
 hw/ppc/ppc405_uc.c        | 415 ++++----------------------------------
 hw/ppc/ppc4xx_devs.c      |  38 ----
 hw/ppc/sam460ex.c         |  69 +++++--
 7 files changed, 107 insertions(+), 447 deletions(-)

-- 
2.20.1



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-01-11 11:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-08 17:12 [PATCH v2 0/4] hw/ppc: Convert UIC device to QOM Peter Maydell
2021-01-08 17:12 ` [PATCH v2 1/4] hw/ppc/sam460ex: Drop use of ppcuic_init() Peter Maydell
2021-01-08 22:16   ` BALATON Zoltan
2021-01-08 17:12 ` [PATCH v2 2/4] hw/ppc: Delete unused ppc405cr_init() code Peter Maydell
2021-01-08 17:12 ` [PATCH v2 3/4] hw/ppc/ppc405_uc: Drop use of ppcuic_init() Peter Maydell
2021-01-08 17:12 ` [PATCH v2 4/4] hw/ppc: Remove unused ppcuic_init() Peter Maydell
2021-01-11  9:23 ` [PATCH v2 0/4] hw/ppc: Convert UIC device to QOM David Gibson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).