diff options
author | Zhao Liu <zhao1.liu@intel.com> | 2024-10-29 16:59:31 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-12-10 18:49:25 +0100 |
commit | 2780dd6acbed68b1abacc54b1ade0e883bbbb371 (patch) | |
tree | f589caf262d3169baf83dfdd23cfe0467d1af695 | |
parent | 2f02b71b5a51c0536280e56109a37e1360c52c50 (diff) | |
download | qemu-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.c | 2 |
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); } |