diff options
author | Thomas Huth <thuth@redhat.com> | 2016-06-07 17:39:38 +0200 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2016-06-14 10:41:38 +1000 |
commit | 52b2519c4ea9a6aa4df7abfe35fd1755c5c8546c (patch) | |
tree | 946bd0d92e0b3ad8e34e3b5be44ac0ccd8aaf99d /target-ppc/kvm_ppc.h | |
parent | 8cd2ce7aaa3c3fadc561f40045d4d53ff72e94ef (diff) | |
download | qemu-52b2519c4ea9a6aa4df7abfe35fd1755c5c8546c.tar.gz qemu-52b2519c4ea9a6aa4df7abfe35fd1755c5c8546c.tar.bz2 qemu-52b2519c4ea9a6aa4df7abfe35fd1755c5c8546c.zip |
ppc: Provide function to get CPU class of the host CPU
When running with KVM, we might be interested in some details
of the host CPU class, too, so provide a function to get the
corresponding CPU class.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'target-ppc/kvm_ppc.h')
-rw-r--r-- | target-ppc/kvm_ppc.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/target-ppc/kvm_ppc.h b/target-ppc/kvm_ppc.h index 3b2090e42e..20bfb59b1a 100644 --- a/target-ppc/kvm_ppc.h +++ b/target-ppc/kvm_ppc.h @@ -56,6 +56,7 @@ void kvmppc_hash64_write_pte(CPUPPCState *env, target_ulong pte_index, bool kvmppc_has_cap_fixup_hcalls(void); int kvmppc_enable_hwrng(void); int kvmppc_put_books_sregs(PowerPCCPU *cpu); +PowerPCCPUClass *kvm_ppc_get_host_cpu_class(void); #else @@ -252,6 +253,12 @@ static inline int kvmppc_put_books_sregs(PowerPCCPU *cpu) { abort(); } + +static inline PowerPCCPUClass *kvm_ppc_get_host_cpu_class(void) +{ + return NULL; +} + #endif #ifndef CONFIG_KVM |