mailing list of musl libc
 help / color / mirror / code / Atom feed
From: lixing <lixing@loongson.cn>
To: musl@lists.openwall.com
Cc: wanghongliang@loongson.cn
Subject: [musl] loongarch64: Add lsx and lasx regset definition
Date: Fri, 2 Aug 2024 14:33:33 +0800	[thread overview]
Message-ID: <5d282498-7300-645f-33e6-c1f725f9e8ff@loongson.cn> (raw)

Hi Rich,

When building the upstream binutils-gdb, we found that the lack of lsx 
and lasx regset definition lead to the compiling work error.

we need to add elf_lsxregset_t and elf_lasxregset_t definition in 
loongarch64.


  arch/loongarch64/bits/user.h | 12 ++++++++++++
  1 file changed, 12 insertions(+)

diff --git a/arch/loongarch64/bits/user.h b/arch/loongarch64/bits/user.h
index fd9b7b22..10e1be45 100644
--- a/arch/loongarch64/bits/user.h
+++ b/arch/loongarch64/bits/user.h
@@ -22,3 +22,15 @@ typedef union {
         float f;
  } elf_fpreg_t;
  typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
+
+typedef union
+{
+       double d[2];
+       float f[4];
+} elf_lsxregset_t[32] __attribute__((__aligned__(16)));
+
+typedef union
+{
+       double d[4];
+       float f[8];
+} elf_lasxregset_t[32] __attribute__((__aligned__(32)));


Thank you.


                 reply	other threads:[~2024-08-02  6:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=5d282498-7300-645f-33e6-c1f725f9e8ff@loongson.cn \
    --to=lixing@loongson.cn \
    --cc=musl@lists.openwall.com \
    --cc=wanghongliang@loongson.cn \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).