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:
Lioncash 2018-09-03 17:36:11 -04:00
parent e81fa596bc
commit fa8f566635
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -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]);
}