mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Xing Li <lixing@loongson.cn>
To: musl@lists.openwall.com
Cc: wanghongliang@loongson.cn
Subject: [musl] [PATCH] loongarch64: Add lsx and lasx regset definition
Date: Tue, 10 Sep 2024 09:17:57 +0800	[thread overview]
Message-ID: <20240910011757.1419511-1-lixing@loongson.cn> (raw)

Fix the upstream binutils-gdb building error caused by
the lack of lsx and lasx regset definition.
---
 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)));
-- 
2.27.0


                 reply	other threads:[~2024-09-10  1:18 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=20240910011757.1419511-1-lixing@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).