Home
last modified time | relevance | path

Searched refs:fp_regs (Results 1 – 25 of 30) sorted by relevance

12

/kernel/linux/linux-5.10/arch/x86/um/os-Linux/
Dregisters.c21 int save_i387_registers(int pid, unsigned long *fp_regs) in save_i387_registers() argument
23 if (ptrace(PTRACE_GETFPREGS, pid, 0, fp_regs) < 0) in save_i387_registers()
28 int save_fp_registers(int pid, unsigned long *fp_regs) in save_fp_registers() argument
34 iov.iov_base = fp_regs; in save_fp_registers()
41 return save_i387_registers(pid, fp_regs); in save_fp_registers()
44 int restore_i387_registers(int pid, unsigned long *fp_regs) in restore_i387_registers() argument
46 if (ptrace(PTRACE_SETFPREGS, pid, 0, fp_regs) < 0) in restore_i387_registers()
51 int restore_fp_registers(int pid, unsigned long *fp_regs) in restore_fp_registers() argument
56 iov.iov_base = fp_regs; in restore_fp_registers()
63 return restore_i387_registers(pid, fp_regs); in restore_fp_registers()
[all …]
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/sh4/
Dfpu.c162 fpu->fp_regs[n] = du; in denormal_to_double()
163 fpu->fp_regs[n + 1] = dl; in denormal_to_double()
248 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler()
249 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler()
260 | tsk->thread.xstate->hardfpu.fp_regs[n + 1]; in ieee_fpe_handler()
262 | tsk->thread.xstate->hardfpu.fp_regs[m + 1]; in ieee_fpe_handler()
264 tsk->thread.xstate->hardfpu.fp_regs[n] = llx >> 32; in ieee_fpe_handler()
265 tsk->thread.xstate->hardfpu.fp_regs[n + 1] = llx & 0xffffffff; in ieee_fpe_handler()
271 tsk->thread.xstate->hardfpu.fp_regs[n] = hx; in ieee_fpe_handler()
286 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/aarch64/
Dget-reg-list.c115 case KVM_REG_ARM_CORE_REG(fp_regs.vregs[0]) ... in core_id_to_str()
116 KVM_REG_ARM_CORE_REG(fp_regs.vregs[31]): in core_id_to_str()
117 idx = (core_off - KVM_REG_ARM_CORE_REG(fp_regs.vregs[0])) / CORE_FPREGS_XX_NR_WORDS; in core_id_to_str()
120 case KVM_REG_ARM_CORE_REG(fp_regs.fpsr): in core_id_to_str()
122 case KVM_REG_ARM_CORE_REG(fp_regs.fpcr): in core_id_to_str()
273 case KVM_REG_ARM_CORE_REG(fp_regs.vregs[0]) ... in core_reg_fixup()
274 KVM_REG_ARM_CORE_REG(fp_regs.vregs[31]): in core_reg_fixup()
281 case KVM_REG_ARM_CORE_REG(fp_regs.fpsr): in core_reg_fixup()
282 case KVM_REG_ARM_CORE_REG(fp_regs.fpcr): in core_reg_fixup()
504 KVM_REG_ARM64 | KVM_REG_SIZE_U32 | KVM_REG_ARM_CORE | KVM_REG_ARM_CORE_REG(fp_regs.fpsr),
[all …]
/kernel/linux/linux-5.10/arch/um/include/shared/
Dregisters.h12 extern int save_i387_registers(int pid, unsigned long *fp_regs);
13 extern int restore_i387_registers(int pid, unsigned long *fp_regs);
14 extern int save_fp_registers(int pid, unsigned long *fp_regs);
15 extern int restore_fp_registers(int pid, unsigned long *fp_regs);
16 extern int save_fpx_registers(int pid, unsigned long *fp_regs);
17 extern int restore_fpx_registers(int pid, unsigned long *fp_regs);
21 extern void get_safe_registers(unsigned long *regs, unsigned long *fp_regs);
/kernel/linux/linux-5.10/arch/sh/kernel/cpu/sh2a/
Dfpu.c393 fpu->fp_regs[n] = du; in denormal_to_double()
394 fpu->fp_regs[n+1] = dl; in denormal_to_double()
473 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler()
474 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler()
485 | tsk->thread.xstate->hardfpu.fp_regs[n+1]; in ieee_fpe_handler()
487 | tsk->thread.xstate->hardfpu.fp_regs[m+1]; in ieee_fpe_handler()
492 tsk->thread.xstate->hardfpu.fp_regs[n] = llx >> 32; in ieee_fpe_handler()
493 tsk->thread.xstate->hardfpu.fp_regs[n+1] = llx & 0xffffffff; in ieee_fpe_handler()
502 tsk->thread.xstate->hardfpu.fp_regs[n] = hx; in ieee_fpe_handler()
516 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/tm/
Dtm-signal-context-chk-fpu.c55 fail = (ucp->uc_mcontext.fp_regs[FPR14 + i] != fps[i]); in signal_usr1()
59 FPR14 + i, ucp->uc_mcontext.fp_regs[FPR14 + i], fps[i]); in signal_usr1()
65 fail = (tm_ucp->uc_mcontext.fp_regs[FPR14 + i] != fps[NV_FPU_REGS + i]); in signal_usr1()
69 FPR14 + i, tm_ucp->uc_mcontext.fp_regs[FPR14 + i], fps[NV_FPU_REGS + i]); in signal_usr1()
Dtm-signal-context-chk-vsx.c106 memcpy(vsx, &ucp->uc_mcontext.fp_regs[FPR20 + i], 8); in signal_usr1()
130 memcpy(vsx_tm, &tm_ucp->uc_mcontext.fp_regs[FPR20 + i], 8); in signal_usr1()
/kernel/linux/linux-5.10/arch/um/os-Linux/
Dregisters.c52 void get_safe_registers(unsigned long *regs, unsigned long *fp_regs) in get_safe_registers() argument
56 if (fp_regs) in get_safe_registers()
57 memcpy(fp_regs, exec_fp_regs, sizeof(exec_fp_regs)); in get_safe_registers()
/kernel/linux/linux-5.10/arch/arm64/kvm/
Dguest.c50 return off >= KVM_REG_ARM_CORE_REG(fp_regs.vregs) && in core_reg_offset_is_vreg()
51 off < KVM_REG_ARM_CORE_REG(fp_regs.fpsr); in core_reg_offset_is_vreg()
76 case KVM_REG_ARM_CORE_REG(fp_regs.vregs[0]) ... in core_reg_size_from_offset()
77 KVM_REG_ARM_CORE_REG(fp_regs.vregs[31]): in core_reg_size_from_offset()
81 case KVM_REG_ARM_CORE_REG(fp_regs.fpsr): in core_reg_size_from_offset()
82 case KVM_REG_ARM_CORE_REG(fp_regs.fpcr): in core_reg_size_from_offset()
152 case KVM_REG_ARM_CORE_REG(fp_regs.vregs[0]) ... in core_reg_addr()
153 KVM_REG_ARM_CORE_REG(fp_regs.vregs[31]): in core_reg_addr()
154 off -= KVM_REG_ARM_CORE_REG(fp_regs.vregs[0]); in core_reg_addr()
156 return &vcpu->arch.ctxt.fp_regs.vregs[off]; in core_reg_addr()
[all …]
Dreset.c320 memset(&vcpu->arch.ctxt.fp_regs, 0, sizeof(vcpu->arch.ctxt.fp_regs)); in kvm_reset_vcpu()
Dfpsimd.c88 fpsimd_bind_state_to_cpu(&vcpu->arch.ctxt.fp_regs, in kvm_arch_vcpu_ctxsync_fp()
/kernel/linux/linux-5.10/arch/s390/kernel/
Dptrace.c236 } else if (addr < (addr_t) &dummy->regs.fp_regs) { in __peek_user()
243 } else if (addr == (addr_t) &dummy->regs.fp_regs.fpc) { in __peek_user()
250 } else if (addr < (addr_t) (&dummy->regs.fp_regs + 1)) { in __peek_user()
255 offset = addr - (addr_t) &dummy->regs.fp_regs.fprs; in __peek_user()
403 } else if (addr < (addr_t) &dummy->regs.fp_regs) { in __poke_user()
410 } else if (addr == (addr_t) &dummy->regs.fp_regs.fpc) { in __poke_user()
419 } else if (addr < (addr_t) (&dummy->regs.fp_regs + 1)) { in __poke_user()
424 offset = addr - (addr_t) &dummy->regs.fp_regs.fprs; in __poke_user()
638 } else if (addr < (addr_t) &dummy32->regs.fp_regs) { in __peek_user_compat()
645 } else if (addr == (addr_t) &dummy32->regs.fp_regs.fpc) { in __peek_user_compat()
[all …]
Dcompat_ptrace.h27 s390_fp_regs fp_regs; member
/kernel/linux/linux-5.10/arch/sh/include/asm/
Dprocessor_32.h66 unsigned long fp_regs[16]; member
76 unsigned long fp_regs[16]; member
Duser.h32 unsigned long fp_regs[16]; member
/kernel/linux/linux-5.10/arch/arm64/include/asm/
Dkvm_hyp.h90 void __fpsimd_save_state(struct user_fpsimd_state *fp_regs);
91 void __fpsimd_restore_state(struct user_fpsimd_state *fp_regs);
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dsignal_64.c144 err |= copy_fpr_to_user(&sc->fp_regs, tsk); in setup_sigcontext()
270 err |= copy_ckfpr_to_user(&sc->fp_regs, tsk); in setup_tm_sigcontexts()
272 err |= copy_fpr_to_user(&tm_sc->fp_regs, tsk); in setup_tm_sigcontexts()
274 err |= copy_ckfpr_to_user(&tm_sc->fp_regs, tsk); in setup_tm_sigcontexts()
394 err |= copy_fpr_from_user(tsk, &sc->fp_regs); in restore_sigcontext()
525 err |= copy_fpr_from_user(tsk, &tm_sc->fp_regs); in restore_tm_sigcontexts()
526 err |= copy_ckfpr_from_user(tsk, &sc->fp_regs); in restore_tm_sigcontexts()
/kernel/linux/linux-5.10/arch/powerpc/include/uapi/asm/
Dsigcontext.h32 elf_fpregset_t fp_regs; member
/kernel/linux/linux-5.10/arch/sh/math-emu/
Dmath.c36 #define FR ((unsigned long*)(fregs->fp_regs))
40 #define DR ((unsigned long long*)(fregs->fp_regs))
482 fpu->fp_regs[i] = 0; in fpu_init()
/kernel/linux/linux-5.10/tools/testing/selftests/vm/
Dpkey-powerpc.h16 #define fpregs fp_regs
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/math/
Dfpu_signal.c48 if (mc->fp_regs[i] != darray[i - 14]) { in signal_fpu_sig()
/kernel/linux/linux-5.10/arch/arm64/kvm/hyp/include/hyp/
Dswitch.h268 &vcpu->arch.ctxt.fp_regs.fpsr, in __hyp_handle_fpsimd()
272 __fpsimd_restore_state(&vcpu->arch.ctxt.fp_regs); in __hyp_handle_fpsimd()
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/asm-arm64/asm/
Dkvm.h31 struct user_fpsimd_state fp_regs; member
/kernel/linux/linux-5.10/arch/s390/include/uapi/asm/
Dptrace.h445 s390_fp_regs fp_regs; member
/kernel/linux/linux-5.10/tools/arch/s390/include/uapi/asm/
Dptrace.h445 s390_fp_regs fp_regs; member

12