qtest/machine-none: Add LoongArch support
authorSong Gao <gaosong@loongson.cn>
Wed, 13 Jul 2022 02:02:58 +0000 (10:02 +0800)
committerThomas Huth <thuth@redhat.com>
Mon, 18 Jul 2022 18:24:36 +0000 (20:24 +0200)
Update the cpu_maps[] to support the LoongArch target.

Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220713020258.601424-1-gaosong@loongson.cn>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qtest/machine-none-test.c

index d0f8cd9902456253afc5aecc218b5d3838e908d9..f92fab479fdb573df3f3e8b3ccd27c64aee9978f 100644 (file)
@@ -54,6 +54,7 @@ static struct arch2cpu cpus_map[] = {
     { "riscv64", "rv64" },
     { "riscv32", "rv32" },
     { "rx", "rx62n" },
+    { "loongarch64", "la464"},
 };
 
 static const char *get_cpu_model_by_arch(const char *arch)