From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 21 Jun 2023 10:52:20 +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 1qBtZe-00FS45-5x for lore@lore.pengutronix.de; Wed, 21 Jun 2023 10:52:20 +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 1qBtZc-0008Aj-7k; Wed, 21 Jun 2023 10:52:20 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qBtYd-0006Dg-E2; Wed, 21 Jun 2023 10:51:19 +0200 Received: from [2a0a:edc0:0:1101:1d::54] (helo=dude05.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1qBtYc-008zZz-Pk; Wed, 21 Jun 2023 10:51:18 +0200 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1qBtYc-00Aihz-1K; Wed, 21 Jun 2023 10:51:18 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Wed, 21 Jun 2023 10:51:18 +0200 Message-Id: <20230621085118.2555017-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230618212038.1036117-2-dev@lynxeye.de> References: <20230618212038.1036117-2-dev@lynxeye.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [ptxdist] [APPLIED] 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 Cc: Lucas Stach 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 Thanks, applied as 3a3e4851f15d1cba33c07764a11d7c60330be838. Michael [sent from post-receive hook] On Wed, 21 Jun 2023 10:51:18 +0200, Lucas Stach 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 > Message-Id: <20230618212038.1036117-2-dev@lynxeye.de> > Signed-off-by: Michael Olbrich > > 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