[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 02/10] plugins/loader: populate target_name with target_name()
From: |
Alex Bennée |
Subject: |
[PATCH 02/10] plugins/loader: populate target_name with target_name() |
Date: |
Tue, 25 Feb 2025 11:08:36 +0000 |
We have a function we can call for this, lets not rely on macros that
stop us building once.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
plugins/loader.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/loader.c b/plugins/loader.c
index 99686b5466..827473c8b6 100644
--- a/plugins/loader.c
+++ b/plugins/loader.c
@@ -297,7 +297,7 @@ int qemu_plugin_load_list(QemuPluginList *head, Error
**errp)
struct qemu_plugin_desc *desc, *next;
g_autofree qemu_info_t *info = g_new0(qemu_info_t, 1);
- info->target_name = TARGET_NAME;
+ info->target_name = target_name();
info->version.min = QEMU_PLUGIN_MIN_VERSION;
info->version.cur = QEMU_PLUGIN_VERSION;
#ifndef CONFIG_USER_ONLY
--
2.39.5
- [PATCH 04/10] plugins/api: clean-up the includes, (continued)
- [PATCH 04/10] plugins/api: clean-up the includes, Alex Bennée, 2025/02/25
- [PATCH 09/10] plugins/api: split out time control helpers, Alex Bennée, 2025/02/25
- [PATCH 05/10] plugins/plugin.h: include queue.h, Alex Bennée, 2025/02/25
- [PATCH 08/10] plugins/api: split out the vaddr/hwaddr helpers, Alex Bennée, 2025/02/25
- [PATCH 03/10] include/qemu: plugin-memory.h doesn't need cpu-defs.h, Alex Bennée, 2025/02/25
- [PATCH 02/10] plugins/loader: populate target_name with target_name(),
Alex Bennée <=
- [PATCH 06/10] plugins/loader: compile loader only once, Alex Bennée, 2025/02/25
- [PATCH 07/10] plugins/api: split out binary path/start/end/entry code, Alex Bennée, 2025/02/25
- [PATCH 10/10] plugins/api: build only once, Alex Bennée, 2025/02/25
- [PATCH 01/10] plugins/api: use tcg_ctx to get TARGET_PAGE_MASK, Alex Bennée, 2025/02/25