aboutsummaryrefslogtreecommitdiff
path: root/target/ppc/cpu.h
diff options
context:
space:
mode:
authorGreg Kurz <groug@kaod.org>2019-12-09 14:28:00 +0100
committerDavid Gibson <david@gibson.dropbear.id.au>2019-12-17 10:39:48 +1100
commit2b6dda81c327239af1643063d4c13a3134425710 (patch)
tree70aef63c3602927c76e3281b089ae80b3c1bac1e /target/ppc/cpu.h
parent6d38666a8931ef6d92535df9d977f2fcba880d2b (diff)
downloadqemu-2b6dda81c327239af1643063d4c13a3134425710.zip
qemu-2b6dda81c327239af1643063d4c13a3134425710.tar.gz
qemu-2b6dda81c327239af1643063d4c13a3134425710.tar.bz2
ppc: Make PPCVirtualHypervisor an incomplete type
PPCVirtualHypervisor is an interface instance. It should never be dereferenced. Drop the dummy type definition for extra safety, which is the common practice with QOM interfaces. Signed-off-by: Greg Kurz <groug@kaod.org> Message-Id: <157589808041.21182.18121655959115011353.stgit@bahia.lan> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'target/ppc/cpu.h')
-rw-r--r--target/ppc/cpu.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/target/ppc/cpu.h b/target/ppc/cpu.h
index f9528fc..60cf030 100644
--- a/target/ppc/cpu.h
+++ b/target/ppc/cpu.h
@@ -1222,10 +1222,6 @@ PowerPCCPUClass *ppc_cpu_class_by_pvr(uint32_t pvr);
PowerPCCPUClass *ppc_cpu_class_by_pvr_mask(uint32_t pvr);
PowerPCCPUClass *ppc_cpu_get_family_class(PowerPCCPUClass *pcc);
-struct PPCVirtualHypervisor {
- Object parent;
-};
-
struct PPCVirtualHypervisorClass {
InterfaceClass parent;
void (*hypercall)(PPCVirtualHypervisor *vhyp, PowerPCCPU *cpu);