aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhao Liu <zhao1.liu@intel.com>2024-10-29 16:59:31 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2024-12-10 18:49:25 +0100
commit2780dd6acbed68b1abacc54b1ade0e883bbbb371 (patch)
treef589caf262d3169baf83dfdd23cfe0467d1af695
parent2f02b71b5a51c0536280e56109a37e1360c52c50 (diff)
downloadqemu-2780dd6acbed68b1abacc54b1ade0e883bbbb371.zip
qemu-2780dd6acbed68b1abacc54b1ade0e883bbbb371.tar.gz
qemu-2780dd6acbed68b1abacc54b1ade0e883bbbb371.tar.bz2
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
-rw-r--r--target/xtensa/helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/xtensa/helper.c b/target/xtensa/helper.c
index ca214b9..2978c47 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);
}