apb: QOMify IOMMU
commitaea5b071012d3507885724362913d0b71dd6c303
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Mon, 8 Jan 2018 18:16:34 +0000 (8 18:16 +0000)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tue, 9 Jan 2018 21:48:20 +0000 (9 21:48 +0000)
treec8708892b379a10a6653a765019d585e74d1c740
parentf5980f757c028ec68ff8442c418db8462415af2a
apb: QOMify IOMMU

This is in preparation to split the IOMMU device out of the APB. As part of
this commit we also enforce separation of the IOMMU and APB devices by using
a QOM object link to pass the IOMMU reference and accessing the IOMMU registers
via a separate memory region mapped into the APB config space rather than
directly.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Acked-by: Artyom Tarasenko <atar4qemu@gmail.com>
hw/pci-host/apb.c
hw/sparc64/sun4u.c
include/hw/pci-host/apb.h