aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhao Liu <zhao1.liu@intel.com>2024-10-29 16:59:30 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2024-12-10 18:49:25 +0100
commit2f02b71b5a51c0536280e56109a37e1360c52c50 (patch)
tree5048b0dc224b8f15f2ba2a9e6739f87c10c3b2f1
parent96a4616dfcd3caa956373469fc70ff882ab1af9f (diff)
downloadqemu-2f02b71b5a51c0536280e56109a37e1360c52c50.zip
qemu-2f02b71b5a51c0536280e56109a37e1360c52c50.tar.gz
qemu-2f02b71b5a51c0536280e56109a37e1360c52c50.tar.bz2
target/sparc: 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-13-zhao1.liu@intel.com
-rw-r--r--target/sparc/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/sparc/cpu.c b/target/sparc/cpu.c
index dd7af86..adba24a 100644
--- a/target/sparc/cpu.c
+++ b/target/sparc/cpu.c
@@ -1008,7 +1008,7 @@ static void sparc_register_cpudef_type(const struct sparc_def_t *def)
.class_data = (void *)def,
};
- type_register(&ti);
+ type_register_static(&ti);
g_free(typename);
}