Skip to content

hw/arm/stellaris: QOM/QDev cleanups

Philippe Mathieu-Daudé qemu-arm qemu-devel 2 versions – Applied

Status from this message: Applied to target-arm.next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyApplied
  2. v14 patches 9 repliesSuperseded

Changes in v2 from the cover letter

- Rebased
- Split I2C reset as enter/hold/exit (Peter)
- Added R-b tags

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4hw/arm/stellaris: Convert ADC controller to Resettable interfacehw/arm/stellaris.c+4 -20 replies
2/4hw/arm/stellaris: Convert I2C controller to Resettable interfacehw/arm/stellaris.c+22 -40 replies
3/4hw/arm/stellaris: Add missing QOM 'machine' parenthw/arm/stellaris.c+4 -00 replies
4/4hw/arm/stellaris: Add missing QOM 'SoC' parenthw/arm/stellaris.c+10 -10 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchPeter Maydell
1/4R-b
2/4
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] hw/arm/stellaris: QOM/QDev cleanups

Since v1:
- Rebased
- Split I2C reset as enter/hold/exit (Peter)
- Added R-b tags

Gustavo wants to access the QOM path of an input IRQ line from the NVIC, but since the device is orphan he ends up with this nasty path [*]:

-device ivshmem-flat,chardev=ivshmem_flat,x-irq-qompath='/machine/unattached/device[1]/nvic/unnamed-gpio-in[0]',x-bus-qompath='/sysbus'

Add the missing parent so the tree is now:

(qemu) info qom-tree
/machine (lm3s6965evb-machine)
/gamepad (stellaris-gamepad)
/oled (ssd0323)
/peripheral (container)
/peripheral-anon (container)
/soc (container)

    /v7m (armv7m)
      /cpu (cortex-m3-arm-cpu)
        /unnamed-gpio-in[0] (irq)
        /unnamed-gpio-in[1] (irq)
        /unnamed-gpio-in[2] (irq)
        /unnamed-gpio-in[3] (irq)
      /cpuclk (clock)
      /nvic (armv7m_nvic)
        /NMI[0] (irq)
        /nvic_sysregs[0] (memory-region)
        /systick-trigger[0] (irq)
        /systick-trigger[1] (irq)
        /unnamed-gpio-in[0] (irq)
        ...

[*] https://lore.kernel.org/qemu-devel/[email protected]/

Philippe Mathieu-Daudé (4):
hw/arm/stellaris: Convert ADC controller to Resettable interface hw/arm/stellaris: Convert I2C controller to Resettable interface hw/arm/stellaris: Add missing QOM 'machine' parent hw/arm/stellaris: Add missing QOM 'SoC' parent

 hw/arm/stellaris.c | 47 +++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 40 insertions(+), 7 deletions(-)
Signature · 1 line
2.41.0