/arch/x86/um/os-Linux/ |
D | registers.c | 21 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 …]
|
/arch/um/include/shared/ |
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);
|
/arch/sh/kernel/cpu/sh4/ |
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() 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 …]
|
/arch/sh/kernel/cpu/sh2a/ |
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() 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 …]
|
/arch/um/os-Linux/ |
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()
|
/arch/arm64/kvm/ |
D | guest.c | 68 return off >= KVM_REG_ARM_CORE_REG(fp_regs.vregs) && in core_reg_offset_is_vreg() 69 off < KVM_REG_ARM_CORE_REG(fp_regs.fpsr); in core_reg_offset_is_vreg() 94 case KVM_REG_ARM_CORE_REG(fp_regs.vregs[0]) ... in core_reg_size_from_offset() 95 KVM_REG_ARM_CORE_REG(fp_regs.vregs[31]): in core_reg_size_from_offset() 99 case KVM_REG_ARM_CORE_REG(fp_regs.fpsr): in core_reg_size_from_offset() 100 case KVM_REG_ARM_CORE_REG(fp_regs.fpcr): in core_reg_size_from_offset() 170 case KVM_REG_ARM_CORE_REG(fp_regs.vregs[0]) ... in core_reg_addr() 171 KVM_REG_ARM_CORE_REG(fp_regs.vregs[31]): in core_reg_addr() 172 off -= KVM_REG_ARM_CORE_REG(fp_regs.vregs[0]); in core_reg_addr() 174 return &vcpu->arch.ctxt.fp_regs.vregs[off]; in core_reg_addr() [all …]
|
D | fpsimd.c | 116 fpsimd_bind_state_to_cpu(&vcpu->arch.ctxt.fp_regs, in kvm_arch_vcpu_ctxsync_fp()
|
/arch/sh/include/asm/ |
D | processor_32.h | 67 unsigned long fp_regs[16]; member 77 unsigned long fp_regs[16]; member
|
D | user.h | 32 unsigned long fp_regs[16]; member
|
/arch/s390/kernel/ |
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() 248 } else if (addr < (addr_t) (&dummy->regs.fp_regs + 1)) { 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() 391 } else if (addr == (addr_t) &dummy->regs.fp_regs.fpc) { in __poke_user() 401 } else if (addr < (addr_t) (&dummy->regs.fp_regs + 1)) { in __poke_user() 406 offset = addr - (addr_t) &dummy->regs.fp_regs.fprs; in __poke_user() 618 } else if (addr < (addr_t) &dummy32->regs.fp_regs) { in __peek_user_compat() 625 } else if (addr == (addr_t) &dummy32->regs.fp_regs.fpc) { in __peek_user_compat() [all …]
|
D | compat_ptrace.h | 27 s390_fp_regs fp_regs; member
|
/arch/powerpc/include/uapi/asm/ |
D | sigcontext.h | 32 elf_fpregset_t fp_regs; member
|
/arch/arm64/include/asm/ |
D | kvm_hyp.h | 94 void __fpsimd_save_state(struct user_fpsimd_state *fp_regs); 95 void __fpsimd_restore_state(struct user_fpsimd_state *fp_regs);
|
D | kvm_emulate.h | 545 memset(&vcpu->arch.ctxt.fp_regs, 0, sizeof(vcpu->arch.ctxt.fp_regs)); in kvm_reset_vcpu_core()
|
D | kvm_host.h | 357 struct user_fpsimd_state fp_regs; member
|
/arch/powerpc/kernel/ |
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()
|
/arch/sh/math-emu/ |
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()
|
/arch/arm64/kvm/hyp/include/hyp/ |
D | switch.h | 147 &vcpu->arch.ctxt.fp_regs.fpsr); in __hyp_sve_restore_guest() 190 __fpsimd_restore_state(&vcpu->arch.ctxt.fp_regs); in kvm_hyp_handle_fpsimd()
|
/arch/s390/include/uapi/asm/ |
D | ptrace.h | 446 s390_fp_regs fp_regs; member
|
/arch/arm64/include/uapi/asm/ |
D | kvm.h | 58 struct user_fpsimd_state fp_regs; member
|
/arch/arm64/kvm/hyp/nvhe/ |
D | hyp-main.c | 675 __sve_save_state(vcpu_sve_pffr(vcpu), &vcpu->arch.ctxt.fp_regs.fpsr); in __hyp_sve_save_guest() 692 __fpsimd_save_state(&hyp_vcpu->vcpu.arch.ctxt.fp_regs); in fpsimd_host_restore()
|