Home
last modified time | relevance | path

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

12

/linux-2.6.39/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-2.6.39/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.h204 } fpscr; member
271 .fpscr = { .val = 0, }, \
/linux-2.6.39/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.c56 vfp->hard.fpscr = FPSCR_ROUND_NEAREST; in vfp_thread_flush()
211 static void vfp_raise_exceptions(u32 exceptions, u32 inst, u32 fpscr, struct pt_regs *regs) in vfp_raise_exceptions() argument
229 fpscr &= ~(FPSCR_N|FPSCR_Z|FPSCR_C|FPSCR_V); in vfp_raise_exceptions()
231 fpscr |= exceptions; in vfp_raise_exceptions()
233 fmxr(FPSCR, fpscr); in vfp_raise_exceptions()
236 if (exceptions & stat && fpscr & en) \ in vfp_raise_exceptions()
255 static u32 vfp_emulate_instruction(u32 inst, u32 fpscr, struct pt_regs *regs) in vfp_emulate_instruction() argument
259 pr_debug("VFP: emulate: INST=0x%08x SCR=0x%08x\n", inst, fpscr); in vfp_emulate_instruction()
267 exceptions = vfp_single_cpdo(inst, fpscr); in vfp_emulate_instruction()
269 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-2.6.39/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-2.6.39/arch/powerpc/kvm/
Dbook3s_paired_singles.c506 void (*func)(u64 *fpscr, in kvmppc_ps_three_in() argument
527 func(&vcpu->arch.fpscr, &ps0_out, &ps0_in1, &ps0_in2, &ps0_in3); in kvmppc_ps_three_in()
544 func(&vcpu->arch.fpscr, &qpr[reg_out], &ps1_in1, &ps1_in2, &ps1_in3); in kvmppc_ps_three_in()
555 void (*func)(u64 *fpscr, in kvmppc_ps_two_in() argument
577 func(&vcpu->arch.fpscr, &ps0_out, &ps0_in1, &ps0_in2); in kvmppc_ps_two_in()
593 func(&vcpu->arch.fpscr, &ps1_out, &ps1_in1, &ps1_in2); in kvmppc_ps_two_in()
620 func(&vcpu->arch.fpscr, &ps0_out, &ps0_in); in kvmppc_ps_one_in()
629 func(&vcpu->arch.fpscr, &qpr[reg_out], &ps1_in); in kvmppc_ps_one_in()
1105 fpd_fadds(&vcpu->arch.fpscr, &cr, fpr_d, fpr_a, fpr_b); in kvmppc_emulate_paired_single()
1109 fpd_fsubs(&vcpu->arch.fpscr, &cr, fpr_d, fpr_a, fpr_b); in kvmppc_emulate_paired_single()
[all …]
Dbook3s.c750 vcpu->arch.fpscr = t->fpscr.val; in kvmppc_giveup_ext()
847 t->fpscr.val = vcpu->arch.fpscr; in kvmppc_handle_ext()
1387 unsigned int fpscr; in __kvmppc_vcpu_run() local
1410 fpscr = current->thread.fpscr.val; in __kvmppc_vcpu_run()
1455 current->thread.fpscr.val = fpscr; in __kvmppc_vcpu_run()
/linux-2.6.39/arch/sh/kernel/cpu/sh2a/
Dfpu.c458 if ((tsk->thread.xstate->hardfpu.fpscr & FPSCR_FPU_ERROR)) { in ieee_fpe_handler()
469 int fpscr; in ieee_fpe_handler() local
477 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
478 prec = fpscr & (1 << 19); in ieee_fpe_handler()
480 if ((fpscr & FPSCR_FPU_ERROR) in ieee_fpe_handler()
496 } else if ((fpscr & FPSCR_FPU_ERROR) in ieee_fpe_handler()
512 int fpscr; in ieee_fpe_handler() local
520 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
521 prec = fpscr & (1 << 19); in ieee_fpe_handler()
523 if ((fpscr & FPSCR_FPU_ERROR) in ieee_fpe_handler()
[all …]
/linux-2.6.39/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-2.6.39/arch/sh/kernel/cpu/
Dfpu.c27 fp->fpscr = FPSCR_INIT; in init_fpu()
31 fp->fpscr = FPSCR_INIT; in init_fpu()
/linux-2.6.39/arch/powerpc/kernel/
Dtraps.c706 static inline int __parse_fpscr(unsigned long fpscr) in __parse_fpscr() argument
711 if ((fpscr & FPSCR_VE) && (fpscr & FPSCR_VX)) in __parse_fpscr()
715 else if ((fpscr & FPSCR_OE) && (fpscr & FPSCR_OX)) in __parse_fpscr()
719 else if ((fpscr & FPSCR_UE) && (fpscr & FPSCR_UX)) in __parse_fpscr()
723 else if ((fpscr & FPSCR_ZE) && (fpscr & FPSCR_ZX)) in __parse_fpscr()
727 else if ((fpscr & FPSCR_XE) && (fpscr & FPSCR_XX)) in __parse_fpscr()
739 code = __parse_fpscr(current->thread.fpscr.val); in parse_fpe()
969 code = __parse_fpscr(current->thread.fpscr.val); in program_check_exception()
1120 code = __parse_fpscr(current->thread.fpscr.val); in SoftwareEmulation()
Dsignal_32.c348 memcpy(&buf[i], &task->thread.fpscr, sizeof(double)); in copy_fpr_to_user()
362 memcpy(&task->thread.fpscr, &buf[i], sizeof(double)); in copy_fpr_from_user()
871 current->thread.fpscr.val = 0; /* turn off all fp exceptions */ in handle_rt_signal32()
1218 current->thread.fpscr.val = 0; /* turn off all fp exceptions */ in handle_signal32()
/linux-2.6.39/arch/arm/include/asm/
Duser.h90 unsigned long fpscr; member
Dfpstate.h36 __u32 fpscr; member
/linux-2.6.39/arch/arm/kernel/
Dptrace.c439 if (put_user(vfp->hard.fpscr, &ufp->fpscr)) in ptrace_getvfpregs()
462 if (get_user(vfp->hard.fpscr, &ufp->fpscr)) in ptrace_setvfpregs()
Dsignal.c201 __put_user_error(h->fpscr, &frame->ufp.fpscr, err); in preserve_vfp_context()
239 __get_user_error(h->fpscr, &frame->ufp.fpscr, err); in restore_vfp_context()
/linux-2.6.39/arch/sh/math-emu/
Dmath.c28 #define FPSCR (fregs->fpscr)
556 if ((tsk->thread.xstate->softfpu.fpscr & (1 << 17))) { in ieee_fpe_handler()
560 tsk->thread.xstate->softfpu.fpscr &= in ieee_fpe_handler()
604 fpu->fpscr = FPSCR_INIT; in fpu_init()

12