@samitouri / QOSamiQemu / commits / bedadea8a4

target/loongarch: Add full type support with query-cpu-model-expansion

On LoongArch with QMP command query-cpu-model-expansion, only static type is supported, full type is not supported. Here add full type support with QMP cpu model query command. Signed-off-by: Bibo Mao <maobibo@loongson.cn> Reviewed-by: Song Gao <gaosong@loongson.cn> Signed-off-by: Song Gao <gaosong@loongson.cn>

Bibo Mao committed Jan 19, 2026 at 18:07 UTC bedadea8a4b59f1f450072c7f7527f39d24f4f21
1 file changed +2 -1
target/loongarch/loongarch-qmp-cmds.c
+2 -1
@@ -58,7 +58,8 @@ CpuModelExpansionInfo *qmp_query_cpu_model_expansion(CpuModelExpansionType type,
58 const char *name;
59 int i;
60
61 - if (type != CPU_MODEL_EXPANSION_TYPE_STATIC) {
61 + if ((type != CPU_MODEL_EXPANSION_TYPE_STATIC) &&
62 + (type != CPU_MODEL_EXPANSION_TYPE_FULL)) {
63 error_setg(errp, "The requested expansion type is not supported");
64 return NULL;
65 }