>From 9355c443116969d93c920b57b3f8f3252a912ca5 Mon Sep 17 00:00:00 2001 From: Xing Li Date: Tue, 10 Sep 2024 09:17:57 +0800 Subject: [PATCH] loongarch64: add lsx and lasx regset definition --- arch/loongarch64/bits/user.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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]; -- 2.21.0