mirror of
https://github.com/mii443/qemu.git
synced 2025-08-28 18:09:35 +00:00
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>
This commit is contained in:
committed by
David Gibson
parent
40a5056c41
commit
8907fc25cf
@ -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 */
|
||||
|
Reference in New Issue
Block a user