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]> --- platforms/architecture.in | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 -- 2.40.1
