mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-23 05:25:11 +00:00
target/mips/cpu: Use type_register instead of type_register_static() in mips_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
e81fa596bc
commit
fa8f566635
|
@ -244,7 +244,7 @@ void mips_cpu_register_types(void *opaque)
|
|||
true,
|
||||
};
|
||||
|
||||
type_register_static(opaque, &mips_cpu_type_info);
|
||||
type_register(opaque, &mips_cpu_type_info);
|
||||
for (i = 0; i < mips_defs_number; i++) {
|
||||
mips_register_cpudef_type(opaque, &mips_defs[i]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue