Browse Source

target/xtensa: 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-14-zhao1.liu@intel.com
Zhao Liu 9 months ago
parent
commit
2780dd6acb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      target/xtensa/helper.c

+ 1 - 1
target/xtensa/helper.c

@@ -198,7 +198,7 @@ void xtensa_register_core(XtensaConfigList *node)
     node->next = xtensa_cores;
     node->next = xtensa_cores;
     xtensa_cores = node;
     xtensa_cores = node;
     type.name = g_strdup_printf(XTENSA_CPU_TYPE_NAME("%s"), node->config->name);
     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);
     g_free((gpointer)type.name);
 }
 }