/Linux-v5.10/arch/mips/include/asm/ |
D | switch_to.h | 90 unsigned long fcr31 = mask_fcr31_x(next->thread.fpu.fcr31); \ 93 if (unlikely(fcr31)) { \ 95 next->thread.fpu.fcr31 &= ~fcr31; \ 96 force_fcr31_sig(fcr31, pc, next); \
|
D | fpu_emulator.h | 171 void force_fcr31_sig(unsigned long fcr31, void __user *fault_addr, 174 unsigned long fcr31); 180 static inline unsigned long mask_fcr31_x(unsigned long fcr31) in mask_fcr31_x() argument 182 return fcr31 & (FPU_CSR_UNI_X | in mask_fcr31_x() 183 ((fcr31 & FPU_CSR_ALL_E) << in mask_fcr31_x()
|
D | mips-r2-to-r6-emul.h | 88 unsigned long *fcr31) in mipsr2_decoder() argument 96 unsigned long *fcr31);
|
D | fpregdef.h | 70 #define fcr31 $31 /* FPU status register */ macro 109 #define fcr31 $31 macro
|
D | asmmacro-32.h | 19 cfc1 \tmp, fcr31 60 ctc1 \tmp, fcr31
|
D | processor.h | 130 unsigned int fcr31; member 305 .fcr31 = 0, \
|
D | fpu.h | 169 tsk->thread.fpu.fcr31 = in lose_fpu_inatomic()
|
D | asmmacro.h | 88 cfc1 \tmp, fcr31 164 ctc1 \tmp, fcr31
|
/Linux-v5.10/arch/mips/kernel/ |
D | traps.c | 762 void force_fcr31_sig(unsigned long fcr31, void __user *fault_addr, in force_fcr31_sig() argument 767 if (fcr31 & FPU_CSR_INV_X) in force_fcr31_sig() 769 else if (fcr31 & FPU_CSR_DIV_X) in force_fcr31_sig() 771 else if (fcr31 & FPU_CSR_OVF_X) in force_fcr31_sig() 773 else if (fcr31 & FPU_CSR_UDF_X) in force_fcr31_sig() 775 else if (fcr31 & FPU_CSR_INE_X) in force_fcr31_sig() 781 int process_fpemu_return(int sig, void __user *fault_addr, unsigned long fcr31) in process_fpemu_return() argument 791 force_fcr31_sig(fcr31, fault_addr, current); in process_fpemu_return() 820 unsigned long fcr31; in simulate_fp() local 852 fcr31 = mask_fcr31_x(current->thread.fpu.fcr31); in simulate_fp() [all …]
|
D | branch.c | 145 unsigned int fcr31; in __mm_isBranchInstr() local 154 fcr31 = read_32bit_cp1_register(CP1_STATUS); in __mm_isBranchInstr() 156 fcr31 = current->thread.fpu.fcr31; in __mm_isBranchInstr() 160 fcr31 = ~fcr31; in __mm_isBranchInstr() 165 if (fcr31 & (1 << bit)) in __mm_isBranchInstr() 688 unsigned int bit, fcr31, reg; in __compute_return_epc_for_insn() local 712 fcr31 = read_32bit_cp1_register(CP1_STATUS); in __compute_return_epc_for_insn() 714 fcr31 = current->thread.fpu.fcr31; in __compute_return_epc_for_insn() 723 if (~fcr31 & (1 << bit)) { in __compute_return_epc_for_insn() 735 if (fcr31 & (1 << bit)) { in __compute_return_epc_for_insn()
|
D | ptrace.c | 345 u32 fcr31; in ptrace_setfcr31() local 348 fcr31 = child->thread.fpu.fcr31; in ptrace_setfcr31() 350 child->thread.fpu.fcr31 = (value & ~mask) | (fcr31 & mask); in ptrace_setfcr31() 370 __put_user(child->thread.fpu.fcr31, data + 64); in ptrace_getfpregs() 443 membuf_write(&to, &target->thread.fpu.fcr31, sizeof(u32)); in fpr_get() 508 u32 fcr31; in fpr_set() local 527 &fcr31, in fpr_set() 532 ptrace_setfcr31(target, fcr31); in fpr_set() 622 .fcsr = target->thread.fpu.fcr31, in msa_get() 679 target->thread.fpu.fcr31 = ctrl_regs.fcsr & ~FPU_CSR_ALL_X; in msa_set() [all …]
|
D | ptrace32.c | 117 tmp = child->thread.fpu.fcr31; in compat_arch_ptrace() 217 child->thread.fpu.fcr31 = 0; in compat_arch_ptrace() 233 child->thread.fpu.fcr31 = data; in compat_arch_ptrace()
|
D | elf.c | 312 t->thread.fpu.fcr31 = c->fpu_csr31; in mips_set_personality_nan() 318 t->thread.fpu.fcr31 |= FPU_CSR_NAN2008; in mips_set_personality_nan() 320 t->thread.fpu.fcr31 |= FPU_CSR_ABS2008; in mips_set_personality_nan()
|
D | r2300_fpu.S | 69 cfc1 t1, fcr31 121 ctc1 t0, fcr31
|
D | kgdb.c | 147 memcpy((void *)¤t->thread.fpu.fcr31, mem, in dbg_set_reg() 182 memcpy(mem, (void *)¤t->thread.fpu.fcr31, in dbg_get_reg()
|
D | mips-r2-to-r6-emul.c | 204 csr = current->thread.fpu.fcr31; in movf_func() 227 csr = current->thread.fpu.fcr31; in movt_func() 906 int mipsr2_decoder(struct pt_regs *regs, u32 inst, unsigned long *fcr31) in mipsr2_decoder() argument 1185 *fcr31 = res = mask_fcr31_x(current->thread.fpu.fcr31); in mipsr2_decoder() 1186 current->thread.fpu.fcr31 &= ~res; in mipsr2_decoder()
|
D | r4k_fpu.S | 102 cfc1 t1, fcr31 221 ctc1 t1, fcr31
|
D | asm-offsets.c | 175 OFFSET(THREAD_FCR31, task_struct, thread.fpu.fcr31); in output_thread_fpu_defines() 385 OFFSET(VCPU_FCR31, kvm_vcpu_arch, fpu.fcr31); in output_kvm_defines()
|
D | signal.c | 85 err |= __put_user(current->thread.fpu.fcr31, csr); in copy_fp_to_sigcontext() 104 err |= __get_user(current->thread.fpu.fcr31, csr); in copy_fp_from_sigcontext()
|
D | genex.S | 485 cfc1 a1, fcr31
|
/Linux-v5.10/arch/mips/math-emu/ |
D | cp1emu.c | 428 unsigned int fcr31; in isBranchInstr() local 734 fcr31 = read_32bit_cp1_register(CP1_STATUS); in isBranchInstr() 736 fcr31 = current->thread.fpu.fcr31; in isBranchInstr() 745 if (~fcr31 & (1 << bit)) in isBranchInstr() 756 if (fcr31 & (1 << bit)) in isBranchInstr() 851 u32 fcr31 = ctx->fcr31; in cop1_cfc() local 856 value = fcr31; in cop1_cfc() 864 value = (fcr31 >> (FPU_CSR_FS_S - MIPS_FENR_FS_S)) & in cop1_cfc() 866 value |= fcr31 & (FPU_CSR_ALL_E | FPU_CSR_RM); in cop1_cfc() 874 value = fcr31 & (FPU_CSR_ALL_X | FPU_CSR_ALL_S); in cop1_cfc() [all …]
|
D | ieee754.h | 170 #define ieee754_csr (*(struct _ieee754_csr *)(¤t->thread.fpu.fcr31))
|
/Linux-v5.10/arch/mips/kvm/ |
D | fpu.S | 121 ctc1 t0, fcr31
|
D | mips.c | 719 v = fpu->fcr31; in kvm_mips_get_reg() 853 fpu->fcr31 = v; in kvm_mips_set_reg()
|
D | entry.c | 701 uasm_i_sw(&p, T0, offsetof(struct kvm_vcpu_arch, fpu.fcr31), in kvm_mips_build_exit()
|