|
|
Message-ID: <5d282498-7300-645f-33e6-c1f725f9e8ff@loongson.cn>
Date: Fri, 2 Aug 2024 14:33:33 +0800
From: lixing <lixing@...ngson.cn>
To: musl@...ts.openwall.com
Cc: wanghongliang@...ngson.cn
Subject: loongarch64: Add lsx and lasx regset definition
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.
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.