diff mbox series

[05/29] rust-target-config: Add mips n32 best guess at target information

Message ID 20220805131252.3706794-5-richard.purdie@linuxfoundation.org
State New
Headers show
Series [01/29] nativesdk: Clear TUNE_FEATURES | expand

Commit Message

Richard Purdie Aug. 5, 2022, 1:12 p.m. UTC
Add a best guess at MIPS n32 target information. This might not be
100% correct but is something to start from at least.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/classes/rust-target-config.bbclass | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Khem Raj Aug. 7, 2022, 12:47 a.m. UTC | #1
On Fri, Aug 5, 2022 at 6:13 AM Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
>
> Add a best guess at MIPS n32 target information. This might not be
> 100% correct but is something to start from at least.
>

Looking at llvm data layout this is correct, so you might update the
commit comment

> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> ---
>  meta/classes/rust-target-config.bbclass | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/meta/classes/rust-target-config.bbclass b/meta/classes/rust-target-config.bbclass
> index 87b7dee3edc..1721839922e 100644
> --- a/meta/classes/rust-target-config.bbclass
> +++ b/meta/classes/rust-target-config.bbclass
> @@ -190,6 +190,13 @@ TARGET_POINTER_WIDTH[mips64] = "64"
>  TARGET_C_INT_WIDTH[mips64] = "64"
>  MAX_ATOMIC_WIDTH[mips64] = "64"
>
> +## mips64-n32-unknown-linux-{gnu, musl}
> +DATA_LAYOUT[mips64-n32] = "E-m:e-p:32:32-i8:8:32-i16:16:32-i64:64-n32:64-S128"
> +TARGET_ENDIAN[mips64-n32] = "big"
> +TARGET_POINTER_WIDTH[mips64-n32] = "32"
> +TARGET_C_INT_WIDTH[mips64-n32] = "32"
> +MAX_ATOMIC_WIDTH[mips64-n32] = "64"
> +
>  ## mips64el-unknown-linux-{gnu, musl}
>  DATA_LAYOUT[mips64el] = "e-m:e-i8:8:32-i16:16:32-i64:64-n32:64-S128"
>  TARGET_ENDIAN[mips64el] = "little"
> --
> 2.34.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#168939): https://lists.openembedded.org/g/openembedded-core/message/168939
> Mute This Topic: https://lists.openembedded.org/mt/92834380/1997914
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
diff mbox series

Patch

diff --git a/meta/classes/rust-target-config.bbclass b/meta/classes/rust-target-config.bbclass
index 87b7dee3edc..1721839922e 100644
--- a/meta/classes/rust-target-config.bbclass
+++ b/meta/classes/rust-target-config.bbclass
@@ -190,6 +190,13 @@  TARGET_POINTER_WIDTH[mips64] = "64"
 TARGET_C_INT_WIDTH[mips64] = "64"
 MAX_ATOMIC_WIDTH[mips64] = "64"
 
+## mips64-n32-unknown-linux-{gnu, musl}
+DATA_LAYOUT[mips64-n32] = "E-m:e-p:32:32-i8:8:32-i16:16:32-i64:64-n32:64-S128"
+TARGET_ENDIAN[mips64-n32] = "big"
+TARGET_POINTER_WIDTH[mips64-n32] = "32"
+TARGET_C_INT_WIDTH[mips64-n32] = "32"
+MAX_ATOMIC_WIDTH[mips64-n32] = "64"
+
 ## mips64el-unknown-linux-{gnu, musl}
 DATA_LAYOUT[mips64el] = "e-m:e-i8:8:32-i16:16:32-i64:64-n32:64-S128"
 TARGET_ENDIAN[mips64el] = "little"