sparc: Fix build

This commit is contained in:
Lioncash 2021-03-05 08:54:43 -05:00
parent 704353c758
commit 14d06ee38c

View file

@ -869,19 +869,13 @@ static void sparc_register_cpudef_type(struct uc_struct *uc, const struct sparc_
{ {
char *typename = sparc_cpu_type_name(def->name); char *typename = sparc_cpu_type_name(def->name);
const TypeInfo ti = { const TypeInfo ti = {
typename, .name = typename,
TYPE_SPARC_CPU, .parent = TYPE_SPARC_CPU,
0,
0,
uc,
NULL, .instance_userdata = uc,
NULL,
NULL,
(void *)def, .class_data = (void *)def,
.class_init = sparc_cpu_cpudef_class_init,
sparc_cpu_cpudef_class_init,
}; };
type_register(uc, &ti); type_register(uc, &ti);
@ -893,24 +887,17 @@ void sparc_cpu_register_types(void *opaque)
int i; int i;
const TypeInfo sparc_cpu_type_info = { const TypeInfo sparc_cpu_type_info = {
TYPE_SPARC_CPU, .name = TYPE_SPARC_CPU,
TYPE_CPU, .parent = TYPE_CPU,
sizeof(SPARCCPUClass), .class_size = sizeof(SPARCCPUClass),
sizeof(SPARCCPU), .instance_size = sizeof(SPARCCPU),
opaque, .instance_userdata = opaque,
sparc_cpu_initfn, .instance_init = sparc_cpu_initfn,
NULL, .class_init = sparc_cpu_class_init,
NULL,
NULL, .abstract = true,
sparc_cpu_class_init,
NULL,
NULL,
true,
}; };
type_register(opaque, &sparc_cpu_type_info); type_register(opaque, &sparc_cpu_type_info);