summaryrefslogtreecommitdiffstats
path: root/include/hw/ppc/spapr.h
diff options
context:
space:
mode:
authorCédric Le Goater2017-02-27 15:29:12 +0100
committerDavid Gibson2017-03-01 01:23:39 +0100
commit681bfaded64537a408c5f6107dfe9969d6800861 (patch)
tree60d476cbb70fda398f74c3041e00755273a366e5 /include/hw/ppc/spapr.h
parentppc/xics: remove set_nr_servers() handler from XICSStateClass (diff)
downloadqemu-681bfaded64537a408c5f6107dfe9969d6800861.tar.gz
qemu-681bfaded64537a408c5f6107dfe9969d6800861.tar.xz
qemu-681bfaded64537a408c5f6107dfe9969d6800861.zip
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>
Diffstat (limited to 'include/hw/ppc/spapr.h')
-rw-r--r--include/hw/ppc/spapr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h
index f9b17d860a..21e506b13c 100644
--- a/include/hw/ppc/spapr.h
+++ b/include/hw/ppc/spapr.h
@@ -59,6 +59,7 @@ struct sPAPRMachineState {
QLIST_HEAD(, sPAPRPHBState) phbs;
struct sPAPRNVRAM *nvram;
XICSState *xics;
+ ICSState *ics;
DeviceState *rtc;
void *htab;