diff mbox series

[13/16] target/xtensa: Replace type_register() with type_register_static()

Message ID 20241029085934.2799066-14-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/xtensa/helper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/target/xtensa/helper.c b/target/xtensa/helper.c
index ca214b948a96..2978c471c1fc 100644
--- a/target/xtensa/helper.c
+++ b/target/xtensa/helper.c
@@ -198,7 +198,7 @@  void xtensa_register_core(XtensaConfigList *node)
     node->next = xtensa_cores;
     xtensa_cores = node;
     type.name = g_strdup_printf(XTENSA_CPU_TYPE_NAME("%s"), node->config->name);
-    type_register(&type);
+    type_register_static(&type);
     g_free((gpointer)type.name);
 }