mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-24 22:25:11 +00:00
target/i386/cpu: Use type_register instead of type_register_static in x86_cpu_register_types()
The lifetime of the TypeInfo instance doesn't live indefinitely, so we should be using the regular type_register().
This commit is contained in:
parent
0a759bf7f3
commit
34b22968a4
|
@ -5243,12 +5243,10 @@ void x86_cpu_register_types(void *opaque)
|
||||||
true,
|
true,
|
||||||
};
|
};
|
||||||
|
|
||||||
//printf("... register X86 cpu\n");
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
type_register_static(opaque, &x86_cpu_type_info);
|
type_register(opaque, &x86_cpu_type_info);
|
||||||
for (i = 0; i < ARRAY_SIZE(builtin_x86_defs); i++) {
|
for (i = 0; i < ARRAY_SIZE(builtin_x86_defs); i++) {
|
||||||
x86_register_cpudef_type(opaque, &builtin_x86_defs[i]);
|
x86_register_cpudef_type(opaque, &builtin_x86_defs[i]);
|
||||||
}
|
}
|
||||||
//printf("... END OF register X86 cpu\n");
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue