mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Lucas Stach <dev@lynxeye.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 2/2] architecture: add support for LoongArch
Date: Sun, 18 Jun 2023 23:20:38 +0200	[thread overview]
Message-ID: <20230618212038.1036117-2-dev@lynxeye.de> (raw)
In-Reply-To: <20230618212038.1036117-1-dev@lynxeye.de>

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 <dev@lynxeye.de>
---
 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




  reply	other threads:[~2023-06-18 21:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-18 21:20 [ptxdist] [PATCH 1/2] update config.guess/config.sub to latest upstream version Lucas Stach
2023-06-18 21:20 ` Lucas Stach [this message]
2023-06-21  8:51   ` [ptxdist] [APPLIED] architecture: add support for LoongArch Michael Olbrich
2023-06-21  8:51 ` [ptxdist] [APPLIED] update config.guess/config.sub to latest upstream version Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230618212038.1036117-2-dev@lynxeye.de \
    --to=dev@lynxeye.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox