mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Lucas Stach <dev@lynxeye.de>
Subject: Re: [ptxdist] [APPLIED] architecture: add support for LoongArch
Date: Wed, 21 Jun 2023 10:51:18 +0200	[thread overview]
Message-ID: <20230621085118.2555017-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20230618212038.1036117-2-dev@lynxeye.de>

Thanks, applied as 3a3e4851f15d1cba33c07764a11d7c60330be838.

Michael

[sent from post-receive hook]

On Wed, 21 Jun 2023 10:51:18 +0200, Lucas Stach <dev@lynxeye.de> 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 <dev@lynxeye.de>
> Message-Id: <20230618212038.1036117-2-dev@lynxeye.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> 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	other threads:[~2023-06-21  8:52 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 ` [ptxdist] [PATCH 2/2] architecture: add support for LoongArch Lucas Stach
2023-06-21  8:51   ` Michael Olbrich [this message]
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=20230621085118.2555017-1-m.olbrich@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=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