On 12/4/21 10:29, Song Gao wrote:
> Signed-off-by: Song Gao <gaos...@loongson.cn>
> Signed-off-by: Xiaojuan Yang <yangxiaoj...@loongson.cn>
> Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
> ---
>  configure                           |  5 ++
>  linux-user/loongarch64/cpu_loop.c   | 94 
> +++++++++++++++++++++++++++++++++++++
>  linux-user/loongarch64/target_cpu.h | 34 ++++++++++++++
>  3 files changed, 133 insertions(+)
>  create mode 100644 linux-user/loongarch64/cpu_loop.c
>  create mode 100644 linux-user/loongarch64/target_cpu.h
> 
> diff --git a/configure b/configure
> index 48c2177..9df99f6 100755
> --- a/configure
> +++ b/configure
> @@ -581,6 +581,8 @@ elif check_define __arm__ ; then
>    cpu="arm"
>  elif check_define __aarch64__ ; then
>    cpu="aarch64"
> +elif check_define __loongarch64__ ; then
> +  cpu="loongarch64"
>  else
>    cpu=$(uname -m)
>  fi
> @@ -612,6 +614,9 @@ case "$cpu" in
>    sparc|sun4[cdmuv])
>      cpu="sparc"
>    ;;
> +  loongarch)
> +    cpu="loongarch"

Shouldn't this be "loongarch64"?

> +  ;;
>    *)

Reply via email to