Home
last modified time | relevance | path

Searched full:fpscr (Results 1 – 25 of 41) sorted by relevance

12

/linux/arch/powerpc/include/asm/
H A Dkvm_fpu.h14 extern void fps_fres(u64 *fpscr, u32 *dst, u32 *src1);
15 extern void fps_frsqrte(u64 *fpscr, u32 *dst, u32 *src1);
16 extern void fps_fsqrts(u64 *fpscr, u32 *dst, u32 *src1);
18 extern void fps_fadds(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2);
19 extern void fps_fdivs(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2);
20 extern void fps_fmuls(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2);
21 extern void fps_fsubs(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2);
23 extern void fps_fmadds(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2,
25 extern void fps_fmsubs(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2,
27 extern void fps_fnmadds(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2,
[all …]
/linux/arch/arm/vfp/
H A 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 …]
H A 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 …]
H A Dvfpmodule.c140 vfp->hard.fpscr = FPSCR_ROUND_NEAREST; in vfp_thread_flush()
262 fmrx(FPEXC), fmrx(FPSCR), inst); in vfp_panic()
271 static int vfp_raise_exceptions(u32 exceptions, u32 inst, u32 fpscr) in vfp_raise_exceptions() argument
283 * If any of the status flags are set, update the FPSCR. in vfp_raise_exceptions()
288 fpscr &= ~(FPSCR_N|FPSCR_Z|FPSCR_C|FPSCR_V); in vfp_raise_exceptions()
290 fpscr |= exceptions; in vfp_raise_exceptions()
292 fmxr(FPSCR, fpscr); in vfp_raise_exceptions()
295 if (exceptions & stat && fpscr & en) \ in vfp_raise_exceptions()
313 static u32 vfp_emulate_instruction(u32 inst, u32 fpscr, struct pt_regs *regs) in vfp_emulate_instruction() argument
317 pr_debug("VFP: emulate: INST=0x%08x SCR=0x%08x\n", inst, fpscr); in vfp_emulate_instruction()
[all …]
H A Dvfphw.S39 ldmia r0, {r0-r3} @ load FPEXC, FPSCR, FPINST, FPINST2
47 VFPFMXR FPSCR, r1 @ restore status
57 VFPFMRX r2, FPSCR @ current status
65 stmia r0, {r1, r2, r3, r12} @ save FPEXC, FPSCR, FPINST, FPINST2
H A Dvfp.h245 #define vfp_single_normaliseround(sd,vsd,fpscr,except,func) __vfp_single_normaliseround(sd,vsd,fpsc… argument
246 u32 __vfp_single_normaliseround(int sd, struct vfp_single *vs, u32 fpscr, u32 exceptions);
248 u32 vfp_single_normaliseround(int sd, struct vfp_single *vs, u32 fpscr, u32 exceptions, const char …
343 u32 vfp_double_normaliseround(int dd, struct vfp_double *vd, u32 fpscr, u32 exceptions, const char …
373 u32 (* const fn)(int dd, int dn, int dm, u32 fpscr);
/linux/arch/powerpc/kvm/
H A Dfpu.S25 * R3 = (double*)&fpscr
31 lfd 0,0(r3); /* load up fpscr value */ \
39 stfd 0,0(r3); /* save new fpscr value */ \
45 * R3 = (double*)&fpscr
52 lfd 0,0(r3); /* load up fpscr value */ \
61 stfd 0,0(r3); /* save new fpscr value */ \
67 * R3 = (double*)&fpscr
75 lfd 0,0(r3); /* load up fpscr value */ \
85 stfd 0,0(r3); /* save new fpscr value */ \
107 * R3 = (double*)&fpscr
[all …]
H A Dbook3s_paired_singles.c493 void (*func)(u64 *fpscr, in kvmppc_ps_three_in() argument
513 func(&vcpu->arch.fp.fpscr, &ps0_out, &ps0_in1, &ps0_in2, &ps0_in3); in kvmppc_ps_three_in()
530 func(&vcpu->arch.fp.fpscr, &qpr[reg_out], &ps1_in1, &ps1_in2, &ps1_in3); in kvmppc_ps_three_in()
541 void (*func)(u64 *fpscr, in kvmppc_ps_two_in() argument
562 func(&vcpu->arch.fp.fpscr, &ps0_out, &ps0_in1, &ps0_in2); in kvmppc_ps_two_in()
578 func(&vcpu->arch.fp.fpscr, &ps1_out, &ps1_in1, &ps1_in2); in kvmppc_ps_two_in()
604 func(&vcpu->arch.fp.fpscr, &ps0_out, &ps0_in); in kvmppc_ps_one_in()
613 func(&vcpu->arch.fp.fpscr, &qpr[reg_out], &ps1_in); in kvmppc_ps_one_in()
1101 fpd_fadds(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_a, fpr_b); in kvmppc_emulate_paired_single()
1105 fpd_fsubs(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_a, fpr_b); in kvmppc_emulate_paired_single()
[all …]
/linux/arch/powerpc/math-emu/
H A Dmath.c170 u32 fpscr; in record_exception() local
172 fpscr = __FPU_FPSCR; in record_exception()
175 fpscr |= FPSCR_FX; in record_exception()
177 fpscr |= FPSCR_OX; in record_exception()
179 fpscr |= FPSCR_UX; in record_exception()
181 fpscr |= FPSCR_ZX; in record_exception()
183 fpscr |= FPSCR_XX; in record_exception()
185 fpscr |= FPSCR_VX; in record_exception()
187 fpscr |= FPSCR_VXSNAN; in record_exception()
189 fpscr |= FPSCR_VXISI; in record_exception()
[all …]
H A Dmtfsf.c13 u32 fpscr; in mtfsf() local
30 fpscr = ((__FPU_FPSCR & ~mask) | (frB[1] & mask)) & in mtfsf()
33 if (fpscr & (FPSCR_VXSNAN | FPSCR_VXISI | FPSCR_VXIDI | in mtfsf()
36 fpscr |= FPSCR_VX; in mtfsf()
42 if (fpscr & (fpscr >> 22) & 0xf8) in mtfsf()
43 fpscr |= FPSCR_FEX; in mtfsf()
45 __FPU_FPSCR = fpscr; in mtfsf()
H A Dfctiwz.c15 u32 fpscr; in fctiwz() local
18 fpscr = __FPU_FPSCR; in fctiwz()
26 __FPU_FPSCR = fpscr; in fctiwz()
/linux/arch/sh/kernel/cpu/sh4/
H A Dfpu.c47 "sts.l fpscr, @-%0\n\t" in save_fpu()
48 "lds %2, fpscr\n\t" in save_fpu()
83 "lds %3, fpscr\n\t":"=r" (dummy) in save_fpu()
96 asm volatile ("lds %2, fpscr\n\t" in restore_fpu()
131 "lds.l @%0+, fpscr\n\t" in restore_fpu()
230 if ((tsk->thread.xstate->hardfpu.fpscr & FPSCR_CAUSE_ERROR)) in ieee_fpe_handler()
242 int fpscr; in ieee_fpe_handler() local
250 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
251 prec = fpscr & FPSCR_DBL_PRECISION; in ieee_fpe_handler()
253 if ((fpscr & FPSCR_CAUSE_ERROR) in ieee_fpe_handler()
[all …]
/linux/arch/sh/kernel/cpu/sh2a/
H A Dfpu.c33 "sts.l fpscr, @-%0\n\t" in save_fpu()
50 "lds %3, fpscr\n\t" in save_fpu()
81 "lds.l @%0+, fpscr\n\t" in restore_fpu()
456 if ((tsk->thread.xstate->hardfpu.fpscr & FPSCR_FPU_ERROR)) { in ieee_fpe_handler()
467 int fpscr; in ieee_fpe_handler() local
475 fpscr = tsk->thread.xstate->hardfpu.fpscr; in ieee_fpe_handler()
476 prec = fpscr & (1 << 19); in ieee_fpe_handler()
478 if ((fpscr & FPSCR_FPU_ERROR) in ieee_fpe_handler()
494 } else if ((fpscr & FPSCR_FPU_ERROR) in ieee_fpe_handler()
510 int fpscr; in ieee_fpe_handler() local
[all …]
/linux/arch/powerpc/kernel/ptrace/
H A Dptrace-novsx.c18 * u64 fpscr;
25 BUILD_BUG_ON(offsetof(struct thread_fp_state, fpscr) != in fpr_get()
45 * u64 fpscr;
54 BUILD_BUG_ON(offsetof(struct thread_fp_state, fpscr) != in fpr_set()
H A Dptrace-vsx.c18 * u64 fpscr;
32 buf[32] = target->thread.fp_state.fpscr; in fpr_get()
45 * u64 fpscr;
60 buf[32] = target->thread.fp_state.fpscr; in fpr_set()
69 target->thread.fp_state.fpscr = buf[32]; in fpr_set()
H A Dptrace-fpu.c27 *data = child->thread.fp_state.fpscr; in ptrace_get_fpr()
53 child->thread.fp_state.fpscr = data; in ptrace_put_fpr()
H A Dptrace-tm.c226 * u64 fpscr;
248 buf[32] = target->thread.ckfp_state.fpscr; in tm_cfpr_get()
270 * u64 fpscr;
292 buf[32] = target->thread.ckfp_state.fpscr; in tm_cfpr_set()
300 target->thread.ckfp_state.fpscr = buf[32]; in tm_cfpr_set()
/linux/arch/sh/math-emu/
H A Dmath.c29 #define FPSCR (fregs->fpscr) macro
30 #define FPSCR_RM (FPSCR&3)
31 #define FPSCR_DN ((FPSCR>>18)&1)
32 #define FPSCR_PR ((FPSCR>>19)&1)
33 #define FPSCR_SZ ((FPSCR>>20)&1)
34 #define FPSCR_FR ((FPSCR>>21)&1)
343 FPSCR ^= flag; in fxchg()
436 unsigned long *reg = (code & 0x0010) ? &FPUL : &FPSCR; in id_sys()
480 fpu->fpscr = FPSCR_INIT; in fpu_init()
/linux/arch/powerpc/kernel/
H A Dsignal.h55 unsafe_put_user(__t->thread.fp_state.fpscr, &buf[i], label); \
75 unsafe_get_user(__t->thread.fp_state.fpscr, &buf[i], label); \
96 unsafe_put_user(__t->thread.ckfp_state.fpscr, &buf[i], label); \
116 unsafe_get_user(__t->thread.ckfp_state.fpscr, &buf[i], failed); \
H A Dsignal.c36 buf[i] = task->thread.fp_state.fpscr; in copy_fpr_to_user()
50 task->thread.fp_state.fpscr = buf[i]; in copy_fpr_from_user()
90 buf[i] = task->thread.ckfp_state.fpscr; in copy_ckfpr_to_user()
104 task->thread.ckfp_state.fpscr = buf[i]; in copy_ckfpr_from_user()
H A Dfpu.S62 * Load state from memory into FP registers including FPSCR.
74 * Store FP state into memory, including FPSCR
/linux/arch/arm/include/asm/
H A Dfpstate.h16 * - FPEXC, FPSCR, FPINST and FPINST2.
33 __u32 fpscr; member
/linux/arch/sh/kernel/cpu/
H A Dfpu.c32 fp->fpscr = FPSCR_INIT; in init_fpu()
36 fp->fpscr = FPSCR_INIT; in init_fpu()
/linux/arch/sh/include/asm/
H A Dprocessor_32.h69 unsigned long fpscr; member
79 unsigned long fpscr; member
/linux/arch/sh/include/uapi/asm/
H A Dptrace_32.h12 * 48 - fpscr register

12