summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorZhao Liu <zhao1.liu@intel.com>2024-10-29 16:59:29 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2024-12-10 18:49:25 +0100
commit96a4616dfcd3caa956373469fc70ff882ab1af9f (patch)
tree67c890ea4eeb86af9d4f652b99f259310f3570ae
parent81b69b502e3f67d357766ad42ae9a3f8bd675ad2 (diff)
downloadfocaccia-qemu-96a4616dfcd3caa956373469fc70ff882ab1af9f.tar.gz
focaccia-qemu-96a4616dfcd3caa956373469fc70ff882ab1af9f.zip
target/mips: Replace type_register() with type_register_static()
Replace type_register() with type_register_static() because
type_register() will be deprecated.

Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Link: https://lore.kernel.org/r/20241029085934.2799066-12-zhao1.liu@intel.com
-rw-r--r--target/mips/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/mips/cpu.c b/target/mips/cpu.c
index d0a43b6d5c..4feacc88c0 100644
--- a/target/mips/cpu.c
+++ b/target/mips/cpu.c
@@ -626,7 +626,7 @@ static void mips_register_cpudef_type(const struct mips_def_t *def)
         .class_data = (void *)def,
     };
 
-    type_register(&ti);
+    type_register_static(&ti);
     g_free(typename);
 }