]> git.proxmox.com Git - mirror_qemu.git/commit - hw/ppc/spapr_pci.c
ppc/xics: store the ICS object under the sPAPR machine
authorCédric Le Goater <clg@kaod.org>
Mon, 27 Feb 2017 14:29:12 +0000 (15:29 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 1 Mar 2017 00:23:39 +0000 (11:23 +1100)
commit681bfaded64537a408c5f6107dfe9969d6800861
tree60d476cbb70fda398f74c3041e00755273a366e5
parent817bb6a4467366b6d1ecbb13a78450f91efd16bf
ppc/xics: store the ICS object under the sPAPR machine

A list of ICS objects was introduced under the XICS object for the
PowerNV machine but, for the sPAPR machine, it brings extra complexity
as there is only a single ICS. To simplify the code, let's add the ICS
pointer under the sPAPR machine and try to reduce the use of this list
where possible.

Also, change the xics_spapr_*() routines to use an ICS object instead
of an XICSState and change their name to reflect that these are
specific to the sPAPR ICS object.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/intc/xics_spapr.c
hw/ppc/spapr.c
hw/ppc/spapr_events.c
hw/ppc/spapr_pci.c
hw/ppc/spapr_vio.c
include/hw/ppc/spapr.h
include/hw/ppc/xics.h