/linux/arch/x86/um/os-Linux/ |
A D | registers.c | 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() 46 if (ptrace(PTRACE_SETFPREGS, pid, 0, fp_regs) < 0) in restore_i387_registers() 56 iov.iov_base = fp_regs; in restore_fp_registers() 63 return restore_i387_registers(pid, fp_regs); in restore_fp_registers() 128 void * fp_regs; in arch_init_registers() local 132 if(fp_regs == NULL) in arch_init_registers() 135 iov.iov_base = fp_regs; in arch_init_registers() [all …]
|
/linux/arch/sh/kernel/cpu/sh4/ |
A D | fpu.c | 162 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() 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() 287 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler() 315 tsk->thread.xstate->hardfpu.fp_regs[n] = hx; in ieee_fpe_handler() 330 hx = tsk->thread.xstate->hardfpu.fp_regs[n]; in ieee_fpe_handler() 331 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler() [all …]
|
/linux/tools/testing/selftests/kvm/aarch64/ |
A D | get-reg-list.c | 182 case KVM_REG_ARM_CORE_REG(fp_regs.vregs[0]) ... in core_id_to_str() 183 KVM_REG_ARM_CORE_REG(fp_regs.vregs[31]): in core_id_to_str() 184 idx = (core_off - KVM_REG_ARM_CORE_REG(fp_regs.vregs[0])) / CORE_FPREGS_XX_NR_WORDS; in core_id_to_str() 187 case KVM_REG_ARM_CORE_REG(fp_regs.fpsr): in core_id_to_str() 189 case KVM_REG_ARM_CORE_REG(fp_regs.fpcr): in core_id_to_str() 340 case KVM_REG_ARM_CORE_REG(fp_regs.vregs[0]) ... in core_reg_fixup() 341 KVM_REG_ARM_CORE_REG(fp_regs.vregs[31]): in core_reg_fixup() 348 case KVM_REG_ARM_CORE_REG(fp_regs.fpsr): in core_reg_fixup() 349 case KVM_REG_ARM_CORE_REG(fp_regs.fpcr): in core_reg_fixup() 684 KVM_REG_ARM64 | KVM_REG_SIZE_U32 | KVM_REG_ARM_CORE | KVM_REG_ARM_CORE_REG(fp_regs.fpsr), [all …]
|
/linux/arch/um/include/shared/ |
A D | registers.h | 12 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);
|
/linux/arch/sh/kernel/cpu/sh2a/ |
A D | fpu.c | 393 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() 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() 517 hy = tsk->thread.xstate->hardfpu.fp_regs[m]; in ieee_fpe_handler() 528 | tsk->thread.xstate->hardfpu.fp_regs[n+1]; in ieee_fpe_handler() [all …]
|
/linux/tools/testing/selftests/powerpc/tm/ |
A D | tm-signal-context-chk-fpu.c | 55 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()
|
A D | tm-signal-context-chk-vsx.c | 106 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()
|
/linux/arch/um/os-Linux/ |
A D | registers.c | 52 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()
|
/linux/arch/arm64/kvm/ |
A D | guest.c | 67 off < KVM_REG_ARM_CORE_REG(fp_regs.fpsr); in core_reg_offset_is_vreg() 92 case KVM_REG_ARM_CORE_REG(fp_regs.vregs[0]) ... in core_reg_size_from_offset() 93 KVM_REG_ARM_CORE_REG(fp_regs.vregs[31]): in core_reg_size_from_offset() 97 case KVM_REG_ARM_CORE_REG(fp_regs.fpsr): in core_reg_size_from_offset() 98 case KVM_REG_ARM_CORE_REG(fp_regs.fpcr): in core_reg_size_from_offset() 169 KVM_REG_ARM_CORE_REG(fp_regs.vregs[31]): in core_reg_addr() 172 return &vcpu->arch.ctxt.fp_regs.vregs[off]; in core_reg_addr() 174 case KVM_REG_ARM_CORE_REG(fp_regs.fpsr): in core_reg_addr() 175 return &vcpu->arch.ctxt.fp_regs.fpsr; in core_reg_addr() 177 case KVM_REG_ARM_CORE_REG(fp_regs.fpcr): in core_reg_addr() [all …]
|
A D | reset.c | 271 memset(&vcpu->arch.ctxt.fp_regs, 0, sizeof(vcpu->arch.ctxt.fp_regs)); in kvm_reset_vcpu()
|
A D | fpsimd.c | 100 fpsimd_bind_state_to_cpu(&vcpu->arch.ctxt.fp_regs, in kvm_arch_vcpu_ctxsync_fp()
|
/linux/arch/s390/kernel/ |
A D | ptrace.c | 234 } else if (addr < (addr_t) &dummy->regs.fp_regs) { in __peek_user() 241 } else if (addr == (addr_t) &dummy->regs.fp_regs.fpc) { in __peek_user() 253 offset = addr - (addr_t) &dummy->regs.fp_regs.fprs; in __peek_user() 384 } else if (addr < (addr_t) &dummy->regs.fp_regs) { in __poke_user() 405 offset = addr - (addr_t) &dummy->regs.fp_regs.fprs; in __poke_user() 619 } else if (addr < (addr_t) &dummy32->regs.fp_regs) { in __peek_user_compat() 748 } else if (addr < (addr_t) &dummy32->regs.fp_regs) { in __poke_user_compat() 905 _s390_fp_regs fp_regs; in s390_fpregs_get() local 910 fp_regs.fpc = target->thread.fpu.fpc; in s390_fpregs_get() 911 fpregs_store(&fp_regs, &target->thread.fpu); in s390_fpregs_get() [all …]
|
A D | compat_ptrace.h | 27 s390_fp_regs fp_regs; member
|
/linux/arch/sh/include/asm/ |
A D | processor_32.h | 66 unsigned long fp_regs[16]; member 76 unsigned long fp_regs[16]; member
|
A D | user.h | 32 unsigned long fp_regs[16]; member
|
/linux/arch/powerpc/kernel/ |
A D | signal_64.c | 152 unsafe_copy_fpr_to_user(&sc->fp_regs, tsk, efault_out); in __unsafe_setup_sigcontext() 279 err |= copy_ckfpr_to_user(&sc->fp_regs, tsk); in setup_tm_sigcontexts() 281 err |= copy_fpr_to_user(&tm_sc->fp_regs, tsk); in setup_tm_sigcontexts() 283 err |= copy_ckfpr_to_user(&tm_sc->fp_regs, tsk); in setup_tm_sigcontexts() 402 unsafe_copy_fpr_from_user(tsk, &sc->fp_regs, efault_out); in __unsafe_restore_sigcontext() 536 err |= copy_fpr_from_user(tsk, &tm_sc->fp_regs); in restore_tm_sigcontexts() 537 err |= copy_ckfpr_from_user(tsk, &sc->fp_regs); in restore_tm_sigcontexts()
|
/linux/arch/arm64/include/asm/ |
A D | kvm_hyp.h | 91 void __fpsimd_save_state(struct user_fpsimd_state *fp_regs); 92 void __fpsimd_restore_state(struct user_fpsimd_state *fp_regs);
|
/linux/arch/powerpc/include/uapi/asm/ |
A D | sigcontext.h | 32 elf_fpregset_t fp_regs; member
|
/linux/arch/sh/math-emu/ |
A D | math.c | 36 #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()
|
/linux/arch/arm64/kvm/hyp/include/hyp/ |
A D | switch.h | 160 &vcpu->arch.ctxt.fp_regs.fpsr); in __hyp_sve_restore_guest() 221 __fpsimd_restore_state(&vcpu->arch.ctxt.fp_regs); in kvm_hyp_handle_fpsimd()
|
/linux/tools/testing/selftests/vm/ |
A D | pkey-powerpc.h | 16 #define fpregs fp_regs
|
/linux/tools/testing/selftests/powerpc/math/ |
A D | fpu_signal.c | 48 if (mc->fp_regs[i] != darray[i - 14]) { in signal_fpu_sig()
|
/linux/tools/arch/s390/include/uapi/asm/ |
A D | ptrace.h | 446 s390_fp_regs fp_regs; member
|
/linux/arch/s390/include/uapi/asm/ |
A D | ptrace.h | 446 s390_fp_regs fp_regs; member
|
/linux/tools/arch/arm64/include/uapi/asm/ |
A D | kvm.h | 58 struct user_fpsimd_state fp_regs; member
|