]> git.proxmox.com Git - qemu.git/blobdiff - arch_init.c
Merge remote-tracking branch 'pmaydell/configury.next' into staging
[qemu.git] / arch_init.c
index 872020e062dcde9d20cb98e99e262372a17d168b..a8b91eed7a63056acb20e2c07f20d715459c1cfc 100644 (file)
@@ -123,7 +123,7 @@ static struct defconfig_file {
     bool userconfig;
 } default_config_files[] = {
     { CONFIG_QEMU_CONFDIR "/qemu.conf",                   true },
-    { CONFIG_QEMU_CONFDIR "/target-" TARGET_ARCH ".conf", true },
+    { CONFIG_QEMU_CONFDIR "/target-" TARGET_NAME ".conf", true },
     { NULL }, /* end of list */
 };
 
@@ -1093,7 +1093,7 @@ TargetInfo *qmp_query_target(Error **errp)
 {
     TargetInfo *info = g_malloc0(sizeof(*info));
 
-    info->arch = TARGET_TYPE;
+    info->arch = g_strdup(TARGET_NAME);
 
     return info;
 }