/openbmc/linux/arch/loongarch/kernel/ |
H A D | signal.c | 59 _save_lsx_context(void __user *fpregs, void __user *fcc, void __user *fcsr); 61 _restore_lsx_context(void __user *fpregs, void __user *fcc, void __user *fcsr); 63 _save_lasx_context(void __user *fpregs, void __user *fcc, void __user *fcsr); 65 _restore_lasx_context(void __user *fpregs, void __user *fcc, void __user *fcsr); 109 uint32_t __user *fcsr = &ctx->fcsr; in copy_fpu_to_sigcontext() local 117 err |= __put_user(current->thread.fpu.fcsr, fcsr); in copy_fpu_to_sigcontext() 129 uint32_t __user *fcsr = &ctx->fcsr; in copy_fpu_from_sigcontext() local 136 err |= __get_user(current->thread.fpu.fcsr, fcsr); in copy_fpu_from_sigcontext() 147 uint32_t __user *fcsr = &ctx->fcsr; in copy_lsx_to_sigcontext() local 156 err |= __put_user(current->thread.fpu.fcsr, fcsr); in copy_lsx_to_sigcontext() [all …]
|
H A D | traps.c | 427 static void force_fcsr_sig(unsigned long fcsr, in force_fcsr_sig() argument 432 if (fcsr & FPU_CSR_INV_X) in force_fcsr_sig() 434 else if (fcsr & FPU_CSR_DIV_X) in force_fcsr_sig() 436 else if (fcsr & FPU_CSR_OVF_X) in force_fcsr_sig() 438 else if (fcsr & FPU_CSR_UDF_X) in force_fcsr_sig() 440 else if (fcsr & FPU_CSR_INE_X) in force_fcsr_sig() 446 static int process_fpemu_return(int sig, void __user *fault_addr, unsigned long fcsr) in process_fpemu_return() argument 455 force_fcsr_sig(fcsr, fault_addr, current); in process_fpemu_return() 481 asmlinkage void noinstr do_fpe(struct pt_regs *regs, unsigned long fcsr) in do_fpe() argument 492 write_fcsr(LOONGARCH_FCSR0, fcsr & ~mask_fcsr_x(fcsr)); in do_fpe() [all …]
|
H A D | cpu-probe.c | 32 unsigned long sr, mask, fcsr, fcsr0, fcsr1; in cpu_set_fpu_fcsr_mask() local 34 fcsr = c->fpu_csr0; in cpu_set_fpu_fcsr_mask() 40 fcsr0 = fcsr & mask; in cpu_set_fpu_fcsr_mask() 44 fcsr1 = fcsr | ~mask; in cpu_set_fpu_fcsr_mask() 48 write_fcsr(LOONGARCH_FCSR0, fcsr); in cpu_set_fpu_fcsr_mask()
|
H A D | genex.S | 89 BUILD_HANDLER fpe fpe fcsr
|
H A D | ptrace.c | 159 r = membuf_write(&to, &target->thread.fpu.fcsr, sizeof(target->thread.fpu.fcsr)); in fpr_get() 223 &target->thread.fpu.fcsr, fcsr_start, in fpr_set()
|
H A D | kgdb.c | 134 memcpy(mem, (void *)¤t->thread.fpu.fcsr, reg_size); in dbg_get_reg() 175 memcpy((void *)¤t->thread.fpu.fcsr, mem, reg_size); in dbg_set_reg()
|
/openbmc/linux/arch/mips/kernel/ |
H A D | fpu-probe.c | 51 unsigned long sr, mask, fcsr, fcsr0, fcsr1; in cpu_set_fpu_fcsr_mask() local 53 fcsr = c->fpu_csr31; in cpu_set_fpu_fcsr_mask() 59 fcsr0 = fcsr & mask; in cpu_set_fpu_fcsr_mask() 63 fcsr1 = fcsr | ~mask; in cpu_set_fpu_fcsr_mask() 67 write_32bit_cp1_register(CP1_STATUS, fcsr); in cpu_set_fpu_fcsr_mask() 84 unsigned long sr, fir, fcsr, fcsr0, fcsr1; in cpu_set_fpu_2008() local 91 fcsr = read_32bit_cp1_register(CP1_STATUS); in cpu_set_fpu_2008() 98 fcsr0 = fcsr & ~(FPU_CSR_ABS2008 | FPU_CSR_NAN2008 | in cpu_set_fpu_2008() 103 fcsr1 = fcsr | FPU_CSR_ABS2008 | FPU_CSR_NAN2008; in cpu_set_fpu_2008() 107 write_32bit_cp1_register(CP1_STATUS, fcsr); in cpu_set_fpu_2008() [all …]
|
/openbmc/linux/arch/riscv/kvm/ |
H A D | vcpu_fp.c | 93 if (reg_num == KVM_REG_RISCV_FP_F_REG(fcsr)) in kvm_riscv_vcpu_get_reg_fp() 94 reg_val = &cntx->fp.f.fcsr; in kvm_riscv_vcpu_get_reg_fp() 102 if (reg_num == KVM_REG_RISCV_FP_D_REG(fcsr)) { in kvm_riscv_vcpu_get_reg_fp() 105 reg_val = &cntx->fp.d.fcsr; in kvm_riscv_vcpu_get_reg_fp() 138 if (reg_num == KVM_REG_RISCV_FP_F_REG(fcsr)) in kvm_riscv_vcpu_set_reg_fp() 139 reg_val = &cntx->fp.f.fcsr; in kvm_riscv_vcpu_set_reg_fp() 147 if (reg_num == KVM_REG_RISCV_FP_D_REG(fcsr)) { in kvm_riscv_vcpu_set_reg_fp() 150 reg_val = &cntx->fp.d.fcsr; in kvm_riscv_vcpu_set_reg_fp()
|
/openbmc/qemu/linux-user/riscv/ |
H A D | signal.c | 38 uint32_t fcsr; member 93 uint32_t fcsr = riscv_csr_read(env, CSR_FCSR); in setup_sigcontext() local 94 __put_user(fcsr, &sc->fcsr); in setup_sigcontext() 160 uint32_t fcsr; in restore_sigcontext() local 161 __get_user(fcsr, &sc->fcsr); in restore_sigcontext() 162 riscv_csr_write(env, CSR_FCSR, fcsr); in restore_sigcontext()
|
/openbmc/qemu/tests/tcg/loongarch64/ |
H A D | test_fcsr.c | 5 unsigned fcsr; in main() local 11 : "=r"(fcsr) : : "f0"); in main() 13 assert(fcsr & (16 << 16)); /* Invalid */ in main()
|
/openbmc/linux/arch/loongarch/include/asm/ |
H A D | fpu.h | 55 static inline unsigned long mask_fcsr_x(unsigned long fcsr) in mask_fcsr_x() argument 57 return fcsr & ((fcsr & FPU_CSR_ALL_E) << in mask_fcsr_x() 157 unsigned int fcsr = current->thread.fpu.fcsr; in init_fpu() local 160 _init_fpu(fcsr); in init_fpu()
|
H A D | processor.h | 84 uint32_t fcsr; member 181 .fcsr = 0, \
|
H A D | exception.h | 18 asmlinkage void noinstr do_fpe(struct pt_regs *regs, unsigned long fcsr);
|
/openbmc/linux/arch/loongarch/include/uapi/asm/ |
H A D | sigcontext.h | 41 __u32 fcsr; member 50 __u32 fcsr; member 59 __u32 fcsr; member
|
H A D | ptrace.h | 46 uint32_t fcsr; member
|
/openbmc/linux/arch/riscv/include/uapi/asm/ |
H A D | ptrace.h | 61 __u32 fcsr; member 66 __u32 fcsr; member 71 __u32 fcsr; member
|
/openbmc/qemu/linux-headers/asm-riscv/ |
H A D | ptrace.h | 61 __u32 fcsr; member 66 __u32 fcsr; member 71 __u32 fcsr; member
|
/openbmc/qemu/linux-user/loongarch64/ |
H A D | signal.c | 38 abi_uint fcsr; member 49 abi_uint fcsr; member 57 abi_uint fcsr; member 185 __put_user(env->fcsr0, &lasx_ctx->fcsr); in setup_sigframe() 200 __put_user(env->fcsr0, &lsx_ctx->fcsr); in setup_sigframe() 214 __put_user(env->fcsr0, &fpu_ctx->fcsr); in setup_sigframe() 302 __get_user(env->fcsr0, &lasx_ctx->fcsr); in restore_sigframe() 314 __get_user(env->fcsr0, &lsx_ctx->fcsr); in restore_sigframe() 325 __get_user(env->fcsr0, &fpu_ctx->fcsr); in restore_sigframe()
|
/openbmc/linux/arch/riscv/kernel/ |
H A D | ptrace.c | 62 membuf_write(&to, fstate, offsetof(struct __riscv_d_ext_state, fcsr)); in riscv_fpr_get() 63 membuf_store(&to, fstate->fcsr); in riscv_fpr_get() 76 offsetof(struct __riscv_d_ext_state, fcsr)); in riscv_fpr_set() 79 offsetof(struct __riscv_d_ext_state, fcsr) + in riscv_fpr_set() 80 sizeof(fstate->fcsr)); in riscv_fpr_set()
|
H A D | asm-offsets.c | 73 OFFSET(TASK_THREAD_FCSR, task_struct, thread.fstate.fcsr); in asm_offsets() 239 OFFSET(KVM_ARCH_FP_F_FCSR, kvm_cpu_context, fp.f.fcsr); in asm_offsets() 275 OFFSET(KVM_ARCH_FP_D_FCSR, kvm_cpu_context, fp.d.fcsr); in asm_offsets() 468 offsetof(struct task_struct, thread.fstate.fcsr) in asm_offsets()
|
/openbmc/qemu/target/loongarch/ |
H A D | arch_dump.c | 58 unsigned int fcsr; member 99 note.fpu.fcsr = cpu_to_dump64(s, env->fcsr0); in loongarch_write_elf64_fprpreg()
|
/openbmc/u-boot/arch/riscv/cpu/ |
H A D | cpu.c | 74 csr_write(fcsr, 0); in arch_cpu_init_dm()
|
/openbmc/qemu/linux-headers/asm-loongarch/ |
H A D | kvm.h | 35 __u32 fcsr; member
|
/openbmc/u-boot/arch/m68k/include/asm/coldfire/ |
H A D | ssi.h | 24 u32 fcsr; member
|
/openbmc/linux/tools/testing/selftests/kvm/riscv/ |
H A D | get-reg-list.c | 289 case KVM_REG_RISCV_FP_F_REG(fcsr): in fp_f_id_to_str() 306 case KVM_REG_RISCV_FP_D_REG(fcsr): in fp_d_id_to_str() 662 KVM_REG_RISCV | KVM_REG_SIZE_U32 | KVM_REG_RISCV_FP_F | KVM_REG_RISCV_FP_F_REG(fcsr), 699 KVM_REG_RISCV | KVM_REG_SIZE_U32 | KVM_REG_RISCV_FP_D | KVM_REG_RISCV_FP_D_REG(fcsr),
|