@ -1202,6 +1202,7 @@ PowerPCCPUClass *ppc_cpu_class_by_pvr(uint32_t pvr);
PowerPCCPUClass * ppc_cpu_class_by_pvr_mask ( uint32_t pvr ) ;
PowerPCCPUClass * ppc_cpu_class_by_pvr_mask ( uint32_t pvr ) ;
PowerPCCPUClass * ppc_cpu_get_family_class ( PowerPCCPUClass * pcc ) ;
PowerPCCPUClass * ppc_cpu_get_family_class ( PowerPCCPUClass * pcc ) ;
# ifndef CONFIG_USER_ONLY
struct PPCVirtualHypervisorClass {
struct PPCVirtualHypervisorClass {
InterfaceClass parent ;
InterfaceClass parent ;
void ( * hypercall ) ( PPCVirtualHypervisor * vhyp , PowerPCCPU * cpu ) ;
void ( * hypercall ) ( PPCVirtualHypervisor * vhyp , PowerPCCPU * cpu ) ;
@ -1215,10 +1216,8 @@ struct PPCVirtualHypervisorClass {
void ( * hpte_set_r ) ( PPCVirtualHypervisor * vhyp , hwaddr ptex , uint64_t pte1 ) ;
void ( * hpte_set_r ) ( PPCVirtualHypervisor * vhyp , hwaddr ptex , uint64_t pte1 ) ;
void ( * get_pate ) ( PPCVirtualHypervisor * vhyp , ppc_v3_pate_t * entry ) ;
void ( * get_pate ) ( PPCVirtualHypervisor * vhyp , ppc_v3_pate_t * entry ) ;
target_ulong ( * encode_hpt_for_kvm_pr ) ( PPCVirtualHypervisor * vhyp ) ;
target_ulong ( * encode_hpt_for_kvm_pr ) ( PPCVirtualHypervisor * vhyp ) ;
# ifndef CONFIG_USER_ONLY
void ( * cpu_exec_enter ) ( PPCVirtualHypervisor * vhyp , PowerPCCPU * cpu ) ;
void ( * cpu_exec_enter ) ( PPCVirtualHypervisor * vhyp , PowerPCCPU * cpu ) ;
void ( * cpu_exec_exit ) ( PPCVirtualHypervisor * vhyp , PowerPCCPU * cpu ) ;
void ( * cpu_exec_exit ) ( PPCVirtualHypervisor * vhyp , PowerPCCPU * cpu ) ;
# endif
} ;
} ;
# define TYPE_PPC_VIRTUAL_HYPERVISOR "ppc-virtual-hypervisor"
# define TYPE_PPC_VIRTUAL_HYPERVISOR "ppc-virtual-hypervisor"
@ -1230,6 +1229,7 @@ struct PPCVirtualHypervisorClass {
# define PPC_VIRTUAL_HYPERVISOR_GET_CLASS(obj) \
# define PPC_VIRTUAL_HYPERVISOR_GET_CLASS(obj) \
OBJECT_GET_CLASS ( PPCVirtualHypervisorClass , ( obj ) , \
OBJECT_GET_CLASS ( PPCVirtualHypervisorClass , ( obj ) , \
TYPE_PPC_VIRTUAL_HYPERVISOR )
TYPE_PPC_VIRTUAL_HYPERVISOR )
# endif /* CONFIG_USER_ONLY */
void ppc_cpu_do_interrupt ( CPUState * cpu ) ;
void ppc_cpu_do_interrupt ( CPUState * cpu ) ;
bool ppc_cpu_exec_interrupt ( CPUState * cpu , int int_req ) ;
bool ppc_cpu_exec_interrupt ( CPUState * cpu , int int_req ) ;