mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] loongarch64: Add lsx and lasx regset definition
@ 2024-08-02  6:33 lixing
  0 siblings, 0 replies; only message in thread
From: lixing @ 2024-08-02  6:33 UTC (permalink / raw)
  To: musl; +Cc: wanghongliang

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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-08-02  6:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-02  6:33 [musl] loongarch64: Add lsx and lasx regset definition lixing

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).