summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorXing Li <lixing@loongson.cn>2024-09-10 09:17:57 +0800
committerRich Felker <dalias@aerifal.cx>2026-03-12 21:21:50 -0400
commit9355c443116969d93c920b57b3f8f3252a912ca5 (patch)
treef6e515c3e429d8996ac3edc8cb953b1fda0cdf2f /arch
parentb5146b83ab2bb91b42a7fc60fa07c41914f1ff54 (diff)
downloadmusl-9355c443116969d93c920b57b3f8f3252a912ca5.tar.gz
loongarch64: add lsx and lasx regset definition
Diffstat (limited to 'arch')
-rw-r--r--arch/loongarch64/bits/user.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/loongarch64/bits/user.h b/arch/loongarch64/bits/user.h
index fd9b7b22..e4aee0d3 100644
--- a/arch/loongarch64/bits/user.h
+++ b/arch/loongarch64/bits/user.h
@@ -22,3 +22,17 @@ typedef union {
float f;
} elf_fpreg_t;
typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
+
+typedef union
+{
+ __attribute__((__aligned__(16)))
+ double d[2];
+ float f[4];
+} elf_lsxregset_t[32];
+
+typedef union
+{
+ __attribute__((__aligned__(32)))
+ double d[4];
+ float f[8];
+} elf_lasxregset_t[32];