mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06: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:
parent
40a5056c41
commit
8907fc25cf
3 changed files with 24 additions and 4 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue