* [musl] [PATCH] loongarch64: Add lsx and lasx regset definition
@ 2024-09-10 1:17 Xing Li
0 siblings, 0 replies; only message in thread
From: Xing Li @ 2024-09-10 1:17 UTC (permalink / raw)
To: musl; +Cc: wanghongliang
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-09-10 1:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-10 1:17 [musl] [PATCH] loongarch64: Add lsx and lasx regset definition Xing Li
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).