Browse Source

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>
master
Bibo Mao 7 months ago
committed by Song Gao
parent
commit
bedadea8a4
  1. 3
      target/loongarch/loongarch-qmp-cmds.c

3
target/loongarch/loongarch-qmp-cmds.c

@ -58,7 +58,8 @@ CpuModelExpansionInfo *qmp_query_cpu_model_expansion(CpuModelExpansionType type,
const char *name;
int i;
if (type != CPU_MODEL_EXPANSION_TYPE_STATIC) {
if ((type != CPU_MODEL_EXPANSION_TYPE_STATIC) &&
(type != CPU_MODEL_EXPANSION_TYPE_FULL)) {
error_setg(errp, "The requested expansion type is not supported");
return NULL;
}

Loading…
Cancel
Save