diff options
author | Cédric Le Goater | 2019-01-17 08:53:25 +0100 |
---|---|---|
committer | David Gibson | 2019-02-04 08:44:18 +0100 |
commit | 8907fc25cf1824c11276f60354bb08bd24c37d4c (patch) | |
tree | 859a47aea61360a40800e60491c6066cc72ef895 /include | |
parent | xive: add a get_tctx() method to the XiveRouter (diff) | |
download | qemu-8907fc25cf1824c11276f60354bb08bd24c37d4c.tar.gz qemu-8907fc25cf1824c11276f60354bb08bd24c37d4c.tar.xz qemu-8907fc25cf1824c11276f60354bb08bd24c37d4c.zip |
ppc/pnv: introduce a CPU machine_data
Include the interrupt presenter under the machine_data as we plan to
remove it from under PowerPCCPU
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/ppc/pnv_core.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/hw/ppc/pnv_core.h b/include/hw/ppc/pnv_core.h index 447ae761f7..9961ea3a92 100644 --- a/include/hw/ppc/pnv_core.h +++ b/include/hw/ppc/pnv_core.h @@ -47,4 +47,13 @@ typedef struct PnvCoreClass { #define PNV_CORE_TYPE_SUFFIX "-" TYPE_PNV_CORE #define PNV_CORE_TYPE_NAME(cpu_model) cpu_model PNV_CORE_TYPE_SUFFIX +typedef struct PnvCPUState { + struct ICPState *icp; +} PnvCPUState; + +static inline PnvCPUState *pnv_cpu_state(PowerPCCPU *cpu) +{ + return (PnvCPUState *)cpu->machine_data; +} + #endif /* _PPC_PNV_CORE_H */ |