mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
plugins/loader: populate target_name with target_name()
We have a function we can call for this, lets not rely on macros that stop us building once. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20250304222439.2035603-22-alex.bennee@linaro.org>
This commit is contained in:
parent
9d06b0ccb1
commit
1d9a974358
1 changed files with 1 additions and 1 deletions
|
@ -297,7 +297,7 @@ int qemu_plugin_load_list(QemuPluginList *head, Error **errp)
|
||||||
struct qemu_plugin_desc *desc, *next;
|
struct qemu_plugin_desc *desc, *next;
|
||||||
g_autofree qemu_info_t *info = g_new0(qemu_info_t, 1);
|
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.min = QEMU_PLUGIN_MIN_VERSION;
|
||||||
info->version.cur = QEMU_PLUGIN_VERSION;
|
info->version.cur = QEMU_PLUGIN_VERSION;
|
||||||
#ifndef CONFIG_USER_ONLY
|
#ifndef CONFIG_USER_ONLY
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue