Thanks, applied as 3a3e4851f15d1cba33c07764a11d7c60330be838.

Michael

[sent from post-receive hook]

On Wed, 21 Jun 2023 10:51:18 +0200, Lucas Stach <[email protected]> wrote:
> LoongArch is a ISA designed by Loongson Technology Corporation.
> More information about the architecture can be found here:
> https://loongson.github.io/LoongArch-Documentation/README-EN.html
> 
> Signed-off-by: Lucas Stach <[email protected]>
> Message-Id: <[email protected]>
> Signed-off-by: Michael Olbrich <[email protected]>
> 
> diff --git a/platforms/architecture.in b/platforms/architecture.in
> index 3543b97d1ad0..1cdbde2ecf02 100644
> --- a/platforms/architecture.in
> +++ b/platforms/architecture.in
> @@ -134,6 +134,14 @@ choice
>               help
>                 This is support for the RISC-V architecture.
>  
> +     config ARCH_LOONGARCH
> +             bool "loongarch  "
> +             select HAS_MMU
> +             select ARCH_LP64
> +             select ARCH_SUPPORTS_ENDIAN_LITTLE
> +             help
> +               This is support for the LoongArch architecture.
> +
>  endchoice
>  
>  #
> @@ -304,6 +312,7 @@ config HAS_HARDFLOAT
>       default y if ARCH_SPARC
>       default y if ARCH_ARM64
>       default y if ARCH_RISCV
> +     default y if ARCH_LOONGARCH
>  
>  #
>  # memory management unit
> @@ -316,7 +325,7 @@ config HAS_MMU
>  #
>  config SIZEOF_LONG_DOUBLE
>       string
> -     default "16" if ARCH_X86_64 || ARCH_ARM64
> +     default "16" if ARCH_X86_64 || ARCH_ARM64 || ARCH_LOONGARCH
>       default "12" if ARCH_X86
>       default "8"
>       # FIXME: add more values
> @@ -344,3 +353,4 @@ config ARCH_STRING
>       default "parisc"                if ARCH_PARISC
>       default "sh"                    if ARCH_SH
>       default "riscv"                 if ARCH_RISCV
> +     default "loongarch"             if ARCH_LOONGARCH

Reply via email to