Home
last modified time | relevance | path

Searched refs:fpscr (Results 1 – 25 of 33) sorted by relevance

12

/linux-3.4.99/arch/powerpc/math-emu/
Dmtfsf.c12 u32 fpscr; in mtfsf() local
48 fpscr = __FPU_FPSCR; in mtfsf()
49 fpscr &= ~(FPSCR_FEX); in mtfsf()
50 if (((fpscr & FPSCR_VX) && (fpscr & FPSCR_VE)) || in mtfsf()
51 ((fpscr & FPSCR_OX) && (fpscr & FPSCR_OE)) || in mtfsf()
52 ((fpscr & FPSCR_UX) && (fpscr & FPSCR_UE)) || in mtfsf()
53 ((fpscr & FPSCR_ZX) && (fpscr & FPSCR_ZE)) || in mtfsf()
54 ((fpscr & FPSCR_XX) && (fpscr & FPSCR_XE))) in mtfsf()
55 fpscr |= FPSCR_FEX; in mtfsf()
56 __FPU_FPSCR = fpscr; in mtfsf()
Dmath.c157 u32 fpscr; in record_exception() local
159 fpscr = __FPU_FPSCR; in record_exception()
162 fpscr |= FPSCR_FX; in record_exception()
164 fpscr |= FPSCR_OX; in record_exception()
166 fpscr |= FPSCR_UX; in record_exception()
168 fpscr |= FPSCR_ZX; in record_exception()
170 fpscr |= FPSCR_XX; in record_exception()
172 fpscr |= FPSCR_VX; in record_exception()
174 fpscr |= FPSCR_VXSNAN; in record_exception()
176 fpscr |= FPSCR_VXISI; in record_exception()
[all …]
Dfctiwz.c14 u32 fpscr; in fctiwz() local
17 fpscr = __FPU_FPSCR; in fctiwz()
25 __FPU_FPSCR = fpscr; in fctiwz()
/linux-3.4.99/arch/powerpc/include/asm/
Dkvm_fpu.h25 extern void fps_fres(u64 *fpscr, u32 *dst, u32 *src1);
26 extern void fps_frsqrte(u64 *fpscr, u32 *dst, u32 *src1);
27 extern void fps_fsqrts(u64 *fpscr, u32 *dst, u32 *src1);
29 extern void fps_fadds(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2);
30 extern void fps_fdivs(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2);
31 extern void fps_fmuls(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2);
32 extern void fps_fsubs(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2);
34 extern void fps_fmadds(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2,
36 extern void fps_fmsubs(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2,
38 extern void fps_fnmadds(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2,
[all …]
Dprocessor.h209 } fpscr; member
280 .fpscr = { .val = 0, }, \
/linux-3.4.99/arch/arm/vfp/
Dvfpsingle.c69 #define vfp_single_normaliseround(sd,vsd,fpscr,except,func) __vfp_single_normaliseround(sd,vsd,fpsc… argument
70 u32 __vfp_single_normaliseround(int sd, struct vfp_single *vs, u32 fpscr, u32 exceptions) in __vfp_single_normaliseround() argument
72 u32 vfp_single_normaliseround(int sd, struct vfp_single *vs, u32 fpscr, u32 exceptions, const char … in __vfp_single_normaliseround()
134 rmode = fpscr & FPSCR_RMODE_MASK; in __vfp_single_normaliseround()
216 struct vfp_single *vsm, u32 fpscr) in vfp_propagate_nan() argument
226 if (fpscr & FPSCR_DEFAULT_NAN) in vfp_propagate_nan()
259 static u32 vfp_single_fabs(int sd, int unused, s32 m, u32 fpscr) in vfp_single_fabs() argument
265 static u32 vfp_single_fcpy(int sd, int unused, s32 m, u32 fpscr) in vfp_single_fcpy() argument
271 static u32 vfp_single_fneg(int sd, int unused, s32 m, u32 fpscr) in vfp_single_fneg() argument
316 static u32 vfp_single_fsqrt(int sd, int unused, s32 m, u32 fpscr) in vfp_single_fsqrt() argument
[all …]
Dvfpdouble.c70 u32 vfp_double_normaliseround(int dd, struct vfp_double *vd, u32 fpscr, u32 exceptions, const char … in vfp_double_normaliseround() argument
129 rmode = fpscr & FPSCR_RMODE_MASK; in vfp_double_normaliseround()
208 struct vfp_double *vdm, u32 fpscr) in vfp_propagate_nan() argument
218 if (fpscr & FPSCR_DEFAULT_NAN) in vfp_propagate_nan()
250 static u32 vfp_double_fabs(int dd, int unused, int dm, u32 fpscr) in vfp_double_fabs() argument
256 static u32 vfp_double_fcpy(int dd, int unused, int dm, u32 fpscr) in vfp_double_fcpy() argument
262 static u32 vfp_double_fneg(int dd, int unused, int dm, u32 fpscr) in vfp_double_fneg() argument
268 static u32 vfp_double_fsqrt(int dd, int unused, int dm, u32 fpscr) in vfp_double_fsqrt() argument
279 ret = vfp_propagate_nan(vdp, &vdm, NULL, fpscr); in vfp_double_fsqrt()
349 return vfp_double_normaliseround(dd, &vdd, fpscr, 0, "fsqrt"); in vfp_double_fsqrt()
[all …]
Dvfpmodule.c114 vfp->hard.fpscr = FPSCR_ROUND_NEAREST; in vfp_thread_flush()
255 static void vfp_raise_exceptions(u32 exceptions, u32 inst, u32 fpscr, struct pt_regs *regs) in vfp_raise_exceptions() argument
273 fpscr &= ~(FPSCR_N|FPSCR_Z|FPSCR_C|FPSCR_V); in vfp_raise_exceptions()
275 fpscr |= exceptions; in vfp_raise_exceptions()
277 fmxr(FPSCR, fpscr); in vfp_raise_exceptions()
280 if (exceptions & stat && fpscr & en) \ in vfp_raise_exceptions()
299 static u32 vfp_emulate_instruction(u32 inst, u32 fpscr, struct pt_regs *regs) in vfp_emulate_instruction() argument
303 pr_debug("VFP: emulate: INST=0x%08x SCR=0x%08x\n", inst, fpscr); in vfp_emulate_instruction()
311 exceptions = vfp_single_cpdo(inst, fpscr); in vfp_emulate_instruction()
313 exceptions = vfp_double_cpdo(inst, fpscr); in vfp_emulate_instruction()
[all …]
Dvfpinstr.h85 u32 vfp_single_cpdo(u32 inst, u32 fpscr);
86 u32 vfp_single_cprt(u32 inst, u32 fpscr, struct pt_regs *regs);
88 u32 vfp_double_cpdo(u32 inst, u32 fpscr);
Dvfp.h248 #define vfp_single_normaliseround(sd,vsd,fpscr,except,func) __vfp_single_normaliseround(sd,vsd,fpsc… argument
249 u32 __vfp_single_normaliseround(int sd, struct vfp_single *vs, u32 fpscr, u32 exceptions);
251 u32 vfp_single_normaliseround(int sd, struct vfp_single *vs, u32 fpscr, u32 exceptions, const char …
346 u32 vfp_double_normaliseround(int dd, struct vfp_double *vd, u32 fpscr, u32 exceptions, const char …
376 u32 (* const fn)(int dd, int dn, int dm, u32 fpscr);
/linux-3.4.99/arch/sh/kernel/cpu/sh4/
Dfpu.c234 if ((tsk->thread.xstate->hardfpu.fpscr & FPSCR_CAUSE_ERROR)) in ieee_fpe_handler()
246 int fpscr; in ieee_fpe_handler() local
254 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
255 prec = fpscr & FPSCR_DBL_PRECISION; in ieee_fpe_handler()
257 if ((fpscr & FPSCR_CAUSE_ERROR) in ieee_fpe_handler()
270 } else if ((fpscr & FPSCR_CAUSE_ERROR) in ieee_fpe_handler()
284 int fpscr; in ieee_fpe_handler() local
292 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
293 prec = fpscr & FPSCR_DBL_PRECISION; in ieee_fpe_handler()
295 if ((fpscr & FPSCR_CAUSE_ERROR) in ieee_fpe_handler()
[all …]
/linux-3.4.99/arch/powerpc/kvm/
Dbook3s_paired_singles.c510 void (*func)(u64 *fpscr, in kvmppc_ps_three_in() argument
531 func(&vcpu->arch.fpscr, &ps0_out, &ps0_in1, &ps0_in2, &ps0_in3); in kvmppc_ps_three_in()
548 func(&vcpu->arch.fpscr, &qpr[reg_out], &ps1_in1, &ps1_in2, &ps1_in3); in kvmppc_ps_three_in()
559 void (*func)(u64 *fpscr, in kvmppc_ps_two_in() argument
581 func(&vcpu->arch.fpscr, &ps0_out, &ps0_in1, &ps0_in2); in kvmppc_ps_two_in()
597 func(&vcpu->arch.fpscr, &ps1_out, &ps1_in1, &ps1_in2); in kvmppc_ps_two_in()
624 func(&vcpu->arch.fpscr, &ps0_out, &ps0_in); in kvmppc_ps_one_in()
633 func(&vcpu->arch.fpscr, &qpr[reg_out], &ps1_in); in kvmppc_ps_one_in()
1109 fpd_fadds(&vcpu->arch.fpscr, &cr, fpr_d, fpr_a, fpr_b); in kvmppc_emulate_paired_single()
1113 fpd_fsubs(&vcpu->arch.fpscr, &cr, fpr_d, fpr_a, fpr_b); in kvmppc_emulate_paired_single()
[all …]
Dbook3s_pr.c394 vcpu->arch.fpscr = t->fpscr.val; in kvmppc_giveup_ext()
491 t->fpscr.val = vcpu->arch.fpscr; in kvmppc_handle_ext()
985 unsigned int fpscr; in kvmppc_vcpu_run() local
1029 fpscr = current->thread.fpscr.val; in kvmppc_vcpu_run()
1073 current->thread.fpscr.val = fpscr; in kvmppc_vcpu_run()
/linux-3.4.99/arch/sh/kernel/cpu/sh2a/
Dfpu.c459 if ((tsk->thread.xstate->hardfpu.fpscr & FPSCR_FPU_ERROR)) { in ieee_fpe_handler()
470 int fpscr; in ieee_fpe_handler() local
478 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
479 prec = fpscr & (1 << 19); in ieee_fpe_handler()
481 if ((fpscr & FPSCR_FPU_ERROR) in ieee_fpe_handler()
497 } else if ((fpscr & FPSCR_FPU_ERROR) in ieee_fpe_handler()
513 int fpscr; in ieee_fpe_handler() local
521 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
522 prec = fpscr & (1 << 19); in ieee_fpe_handler()
524 if ((fpscr & FPSCR_FPU_ERROR) in ieee_fpe_handler()
[all …]
/linux-3.4.99/arch/sh/include/asm/
Duser.h33 unsigned int fpscr; member
39 unsigned long fpscr; member
Dprocessor_32.h74 unsigned long fpscr; member
84 unsigned long fpscr; member
Dprocessor_64.h85 unsigned int fpscr; member
92 unsigned int fpscr; member
/linux-3.4.99/arch/sh/kernel/cpu/
Dfpu.c28 fp->fpscr = FPSCR_INIT; in init_fpu()
32 fp->fpscr = FPSCR_INIT; in init_fpu()
/linux-3.4.99/arch/powerpc/kernel/
Dtraps.c755 static inline int __parse_fpscr(unsigned long fpscr) in __parse_fpscr() argument
760 if ((fpscr & FPSCR_VE) && (fpscr & FPSCR_VX)) in __parse_fpscr()
764 else if ((fpscr & FPSCR_OE) && (fpscr & FPSCR_OX)) in __parse_fpscr()
768 else if ((fpscr & FPSCR_UE) && (fpscr & FPSCR_UX)) in __parse_fpscr()
772 else if ((fpscr & FPSCR_ZE) && (fpscr & FPSCR_ZX)) in __parse_fpscr()
776 else if ((fpscr & FPSCR_XE) && (fpscr & FPSCR_XX)) in __parse_fpscr()
788 code = __parse_fpscr(current->thread.fpscr.val); in parse_fpe()
1047 code = __parse_fpscr(current->thread.fpscr.val); in program_check_exception()
1212 code = __parse_fpscr(current->thread.fpscr.val); in SoftwareEmulation()
Dptrace.c339 memcpy(&buf[32], &target->thread.fpscr, sizeof(double)); in fpr_get()
343 BUILD_BUG_ON(offsetof(struct thread_struct, fpscr) != in fpr_get()
368 memcpy(&target->thread.fpscr, &buf[32], sizeof(double)); in fpr_set()
371 BUILD_BUG_ON(offsetof(struct thread_struct, fpscr) != in fpr_set()
1504 tmp = child->thread.fpscr.val; in arch_ptrace()
1537 child->thread.fpscr.val = data; in arch_ptrace()
Dsignal_32.c351 memcpy(&buf[i], &task->thread.fpscr, sizeof(double)); in copy_fpr_to_user()
365 memcpy(&task->thread.fpscr, &buf[i], sizeof(double)); in copy_fpr_from_user()
880 current->thread.fpscr.val = 0; /* turn off all fp exceptions */ in handle_rt_signal32()
1229 current->thread.fpscr.val = 0; /* turn off all fp exceptions */ in handle_signal32()
/linux-3.4.99/arch/arm/kernel/
Dptrace.c669 const size_t user_fpscr_offset = offsetof(struct user_vfp, fpscr); in vfp_get()
687 &vfp->fpscr, in vfp_get()
689 user_fpscr_offset + sizeof(vfp->fpscr)); in vfp_get()
706 const size_t user_fpscr_offset = offsetof(struct user_vfp, fpscr); in vfp_set()
725 &new_vfp.fpscr, in vfp_set()
727 user_fpscr_offset + sizeof(new_vfp.fpscr)); in vfp_set()
/linux-3.4.99/arch/arm/include/asm/
Duser.h90 unsigned long fpscr; member
Dfpstate.h36 __u32 fpscr; member
/linux-3.4.99/arch/sh/math-emu/
Dmath.c27 #define FPSCR (fregs->fpscr)
555 if ((tsk->thread.xstate->softfpu.fpscr & (1 << 17))) { in ieee_fpe_handler()
559 tsk->thread.xstate->softfpu.fpscr &= in ieee_fpe_handler()
603 fpu->fpscr = FPSCR_INIT; in fpu_init()

12