mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
ppc: spapr: use cpu type name directly
replace sPAPRCPUCoreClass::cpu_class with cpu type name since it were needed just to get that at points it were accessed. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Greg Kurz <groug@kaod.org> Acked-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
44cd95e31a
commit
b51d3c8818
4 changed files with 10 additions and 14 deletions
|
@ -2514,7 +2514,7 @@ static int kvm_ppc_register_host_cpu_type(void)
|
|||
type_info.instance_size = sizeof(sPAPRCPUCore);
|
||||
type_info.instance_init = NULL;
|
||||
type_info.class_init = spapr_cpu_core_class_init;
|
||||
type_info.class_data = (void *) "host";
|
||||
type_info.class_data = (void *) POWERPC_CPU_TYPE_NAME("host");
|
||||
type_register(&type_info);
|
||||
g_free((void *)type_info.name);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue