|
Message-Id: <20240910011757.1419511-1-lixing@loongson.cn> Date: Tue, 10 Sep 2024 09:17:57 +0800 From: Xing Li <lixing@...ngson.cn> To: musl@...ts.openwall.com Cc: wanghongliang@...ngson.cn Subject: [PATCH] loongarch64: Add lsx and lasx regset definition 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
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.