From 27aa790376c9b111f872445a17d660db5e881911 Mon Sep 17 00:00:00 2001 From: Collin Walling Date: Sun, 29 Jun 2025 22:44:04 -0400 Subject: [PATCH] target/s390x: set has_deprecated_props flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now that the deprecated_props is an optional field, the expansion method must now set the "has_deprecated_props" flag in order for the data to be output from the response. Fixes: 448553bb7c (qapi: Make CpuModelExpansionInfo::deprecated-props optional and generic) Signed-off-by: Collin Walling Reviewed-by: Philippe Mathieu-Daudé Message-ID: <20250630024404.940882-1-walling@linux.ibm.com> Signed-off-by: Thomas Huth --- target/s390x/cpu_models_system.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/s390x/cpu_models_system.c b/target/s390x/cpu_models_system.c index 9d84faa3c9..5b84604867 100644 --- a/target/s390x/cpu_models_system.c +++ b/target/s390x/cpu_models_system.c @@ -252,6 +252,9 @@ CpuModelExpansionInfo *qmp_query_cpu_model_expansion(CpuModelExpansionType type, s390_feat_bitmap_to_ascii(deprecated_feats, &expansion_info->deprecated_props, list_add_feat); + + expansion_info->has_deprecated_props = !!expansion_info->deprecated_props; + return expansion_info; }