mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-05-05 05:12:20 +00:00
target/arm/cpu: Use type_register instead of type_register_static() in arm_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
34b22968a4
commit
e81fa596bc
|
@ -1720,7 +1720,7 @@ void arm_cpu_register_types(void *opaque)
|
||||||
arm_cpu_type_info.class_size = sizeof(ARMCPUClass),
|
arm_cpu_type_info.class_size = sizeof(ARMCPUClass),
|
||||||
arm_cpu_type_info.class_init = arm_cpu_class_init,
|
arm_cpu_type_info.class_init = arm_cpu_class_init,
|
||||||
|
|
||||||
type_register_static(opaque, &arm_cpu_type_info);
|
type_register(opaque, &arm_cpu_type_info);
|
||||||
|
|
||||||
while (info->name) {
|
while (info->name) {
|
||||||
cpu_register(opaque, info);
|
cpu_register(opaque, info);
|
||||||
|
|
Loading…
Reference in a new issue