diff mbox series

[12/16] target/sparc: Replace type_register() with type_register_static()

Message ID 20241029085934.2799066-13-zhao1.liu@intel.com (mailing list archive)
State New
Headers show
Series qom/object: Deprecate type_register() | expand

Commit Message

Zhao Liu Oct. 29, 2024, 8:59 a.m. UTC
Replace type_register() with type_register_static() because
type_register() will be deprecated.

Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
---
 target/sparc/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/target/sparc/cpu.c b/target/sparc/cpu.c
index 54cb269e0af1..f784b84ddd91 100644
--- a/target/sparc/cpu.c
+++ b/target/sparc/cpu.c
@@ -1000,7 +1000,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);
 }