[PATCH] qtest/machine-none: Add LoongArch support

Song Gao posted 1 patch 3 years, 7 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220713020258.601424-1-gaosong@loongson.cn
Maintainers: Thomas Huth <thuth@redhat.com>, Laurent Vivier <lvivier@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>
tests/qtest/machine-none-test.c | 1 +
1 file changed, 1 insertion(+)
[PATCH] qtest/machine-none: Add LoongArch support
Posted by Song Gao 3 years, 7 months ago
Update the cpu_maps[] to support the LoongArch target.

Signed-off-by: Song Gao <gaosong@loongson.cn>
---
 tests/qtest/machine-none-test.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/qtest/machine-none-test.c b/tests/qtest/machine-none-test.c
index d0f8cd9902..f92fab479f 100644
--- a/tests/qtest/machine-none-test.c
+++ b/tests/qtest/machine-none-test.c
@@ -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)
-- 
2.31.1
Re: [PATCH] qtest/machine-none: Add LoongArch support
Posted by Richard Henderson 3 years, 6 months ago
On 7/13/22 07:32, Song Gao wrote:
> Update the cpu_maps[] to support the LoongArch target.
> 
> Signed-off-by: Song Gao <gaosong@loongson.cn>
> ---
>   tests/qtest/machine-none-test.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/tests/qtest/machine-none-test.c b/tests/qtest/machine-none-test.c
> index d0f8cd9902..f92fab479f 100644
> --- a/tests/qtest/machine-none-test.c
> +++ b/tests/qtest/machine-none-test.c
> @@ -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)

Queued.


r~
Re: [PATCH] qtest/machine-none: Add LoongArch support
Posted by Richard Henderson 3 years, 7 months ago
On 7/13/22 07:32, Song Gao wrote:
> Update the cpu_maps[] to support the LoongArch target.
> 
> Signed-off-by: Song Gao<gaosong@loongson.cn>
> ---
>   tests/qtest/machine-none-test.c | 1 +
>   1 file changed, 1 insertion(+)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~
Re: [PATCH] qtest/machine-none: Add LoongArch support
Posted by Philippe Mathieu-Daudé via 3 years, 7 months ago
On Wed, Jul 13, 2022 at 4:05 AM Song Gao <gaosong@loongson.cn> wrote:
>
> Update the cpu_maps[] to support the LoongArch target.
>

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

> Signed-off-by: Song Gao <gaosong@loongson.cn>
> ---
>  tests/qtest/machine-none-test.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/tests/qtest/machine-none-test.c b/tests/qtest/machine-none-test.c
> index d0f8cd9902..f92fab479f 100644
> --- a/tests/qtest/machine-none-test.c
> +++ b/tests/qtest/machine-none-test.c
> @@ -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)
> --
> 2.31.1
>
>