mbox series

[v5,0/3] hw/sparc/leon3: Strengthen SysBus & QBus API

Message ID 20240215144623.76233-1-philmd@linaro.org
Headers show
Series hw/sparc/leon3: Strengthen SysBus & QBus API | expand

Message

Philippe Mathieu-Daudé Feb. 15, 2024, 2:46 p.m. UTC
Since v4:
- Rebased on Leon3 SMP support [1].
- qdev_init_gpio_in_named( leon3_start_cpu ) without opaque

This is the rebased patches of v4 [2]. See cover:

Hi,

This series ensure following is called *before* a
device is realized:
- qbus_new()
- sysbus_init_mmio()
- qdev_init_gpio_in_named_with_opaque()

and these are called *after* it is:
- sysbus_mmio_map()
- sysbus_connect_irq(),
- qdev_connect_gpio_out()
- qdev_connect_gpio_out_named()

[1] https://lore.kernel.org/qemu-devel/20240131085047.18458-1-chigot@adacore.com/
[2] https://lore.kernel.org/qemu-devel/20240213130341.1793-1-philmd@linaro.org/

Philippe Mathieu-Daudé (3):
  hw/sparc/leon3: Pass DeviceState opaque argument to leon3_set_pil_in()
  hw/sparc/leon3: Pass DeviceState opaque argument to leon3_start_cpu()
  hw/sparc/leon3: Initialize GPIO before realizing CPU devices

 hw/sparc/leon3.c | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

Comments

Philippe Mathieu-Daudé Feb. 15, 2024, 5:48 p.m. UTC | #1
On 15/2/24 15:46, Philippe Mathieu-Daudé wrote:

> Philippe Mathieu-Daudé (3):
>    hw/sparc/leon3: Pass DeviceState opaque argument to leon3_set_pil_in()
>    hw/sparc/leon3: Pass DeviceState opaque argument to leon3_start_cpu()
>    hw/sparc/leon3: Initialize GPIO before realizing CPU devices

Thanks, series queued.