apb: return APBState from pci_apb_init() rather than PCIBus
commit588978c0a1e9f5596a12d124b530bdf698ed9104
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Thu, 21 Dec 2017 07:32:57 +0000 (21 07:32 +0000)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tue, 9 Jan 2018 21:31:31 +0000 (9 21:31 +0000)
tree0f2b85436b9c1967b1538132d027fa67c514c37f
parentb26f441903f8d6efcd0501ec6d0a2c8a51a13eae
apb: return APBState from pci_apb_init() rather than PCIBus

This is a first step towards removing pci_apb_init() completely.

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