From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Sun, 18 Jun 2023 23:21:52 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qAzqL-00CMmJ-LF for lore@lore.pengutronix.de; Sun, 18 Jun 2023 23:21:52 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1qAzqJ-00019t-Fo; Sun, 18 Jun 2023 23:21:51 +0200 Received: from ns.lynxeye.de ([87.118.118.114] helo=lynxeye.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1qAzpj-00019k-1U for ptxdist@pengutronix.de; Sun, 18 Jun 2023 23:21:15 +0200 Received: by lynxeye.de (Postfix, from userid 501) id A0599E74017; Sun, 18 Jun 2023 23:20:43 +0200 (CEST) Received: from astat.fritz.box (a89-183-231-232.net-htp.de [89.183.231.232]) by lynxeye.de (Postfix) with ESMTPA id EA486E74013 for ; Sun, 18 Jun 2023 23:20:41 +0200 (CEST) From: Lucas Stach To: ptxdist@pengutronix.de Date: Sun, 18 Jun 2023 23:20:38 +0200 Message-Id: <20230618212038.1036117-2-dev@lynxeye.de> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230618212038.1036117-1-dev@lynxeye.de> References: <20230618212038.1036117-1-dev@lynxeye.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-3.3 required=4.0 tests=AWL,BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH 2/2] architecture: add support for LoongArch X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false 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 --- 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