authorgravatar for koachan@protonmail.comKoakuma <koachan@protonmail.com> 2020-10-25 21:38:39+07:00
committergravatar for koachan@protonmail.comKoakuma <koachan@protonmail.com> 2020-10-25 21:38:39+07:00
log1a362ea5b032d7e7f0300e0d9ace1b36b164576c
tree92b167e30fb4e219824a194aabde53b4decef885
parent785153d756e2148a30a1e2d7987bedda1ae2d570

Fix sparc64 bits definitions


1 files changed, 28 insertions(+), 3 deletions(-)

lib/std/os/bits/linux/sparc64.zig+28-3
......@@ -550,7 +550,31 @@ pub const fpstate = extern struct {
550550 gsr: u64,
551551 fprs: u64,
552552};
553pub const fpregset_t = *fpstate;
553
554pub const __fpq = extern struct {
555 fpq_addr: *u32,
556 fpq_instr: u32,
557};
558
559pub const __fq = extern struct {
560 FQu: extern union {
561 whole: f64,
562 fpq: __fpq,
563 },
564};
565
566pub const fpregset_t = extern struct {
567 fpu_fr: extern union {
568 fpu_regs: [32]u32,
569 fpu_dregs: [32]f64,
570 fpu_qregs: [16]c_longdouble,
571 },
572 fpu_q: *__fq,
573 fpu_fsr: u64,
574 fpu_qcnt: u8,
575 fpu_q_entrysize: u8,
576 fpu_en: u8,
577};
554578
555579pub const siginfo_fpu_t = extern struct {
556580 float_regs: [64]u32,
......@@ -594,6 +618,7 @@ pub const fpu_t = extern struct {
594618 },
595619 fsr: u64,
596620 fprs: u64,
621 gsr: u64,
597622 fq: *fq,
598623 qcnt: u8,
599624 qentsz: u8,
......@@ -603,14 +628,14 @@ pub const fpu_t = extern struct {
603628pub const mcontext_t = extern struct {
604629 gregs: gregset_t,
605630 fp: greg_t,
606 i7: greg_t,
631 @"i7": greg_t,
607632 fpregs: fpu_t,
608633};
609634
610635pub const ucontext_t = extern struct {
611636 link: *ucontext_t,
612637 flags: u64,
613 __sigmask: u64,
638 sigmask: u64,
614639 mcontext: mcontext_t,
615640 stack: stack_t,
616641 sigmask: sigset_t,