]> git.proxmox.com Git - mirror_qemu.git/commit
apb: remove pci_apb_init() and instantiate APB device using qdev
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Thu, 21 Dec 2017 07:32:57 +0000 (07:32 +0000)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tue, 9 Jan 2018 21:48:15 +0000 (21:48 +0000)
commitcacd05805eeea393ec929fe841f9a68aa2140d92
tree23c44d5a3b5c3990487511e2f9459a92ed6e14a8
parent4272ad40189c73324da59047f5232ec795111c4b
apb: remove pci_apb_init() and instantiate APB device using qdev

By making the special_base and mem_base values qdev properties, we can move
the remaining parts of pci_apb_init() into the pbm init() and realize()
functions.

This finally allows us to instantiate the APB directly using standard qdev
create/init functions in sun4u.c.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Artyom Tarasenko <atar4qemu@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
hw/pci-host/apb.c
hw/sparc64/sun4u.c
include/hw/pci-host/apb.h