Home
last modified time | relevance | path

Searched refs:fpexc_mode (Results 1 – 9 of 9) sorted by relevance

/linux-6.1.9/arch/powerpc/include/asm/
Dprocessor.h171 int fpexc_mode; /* floating-point exception mode */ member
295 .fpexc_mode = MSR_FE0 | MSR_FE1, \
303 .fpexc_mode = MSR_FE0 | MSR_FE1, \
310 .fpexc_mode = 0, \
/linux-6.1.9/arch/powerpc/math-emu/
Dmath_efp.c695 if (current->thread.fpexc_mode & PR_FP_EXC_SW_ENABLE) { in do_spe_mathemu()
697 && (current->thread.fpexc_mode & PR_FP_EXC_DIV)) in do_spe_mathemu()
700 && (current->thread.fpexc_mode & PR_FP_EXC_OVF)) in do_spe_mathemu()
703 && (current->thread.fpexc_mode & PR_FP_EXC_UND)) in do_spe_mathemu()
706 && (current->thread.fpexc_mode & PR_FP_EXC_RES)) in do_spe_mathemu()
709 && (current->thread.fpexc_mode & PR_FP_EXC_INV)) in do_spe_mathemu()
888 if (current->thread.fpexc_mode & PR_FP_EXC_SW_ENABLE) in speround_handler()
889 return (current->thread.fpexc_mode & PR_FP_EXC_RES) ? 1 : 0; in speround_handler()
/linux-6.1.9/arch/powerpc/kernel/
Dprocess.c541 unsigned long fpexc_mode = 0; in restore_math() local
549 fpexc_mode = current->thread.fpexc_mode; in restore_math()
560 regs_set_return_msr(regs, regs->msr | new_msr | fpexc_mode); in restore_math()
1972 tsk->thread.fpexc_mode = val & in set_fpexc_mode()
1988 tsk->thread.fpexc_mode = __pack_fe01(val); in set_fpexc_mode()
1991 | tsk->thread.fpexc_mode); in set_fpexc_mode()
2000 if (tsk->thread.fpexc_mode & PR_FP_EXC_SW_ENABLE) { in get_fpexc_mode()
2016 val = tsk->thread.fpexc_mode; in get_fpexc_mode()
2021 val = __unpack_fe01(tsk->thread.fpexc_mode); in get_fpexc_mode()
Dtraps.c2121 int fpexc_mode; in DEFINE_INTERRUPT_HANDLER() local
2130 fpexc_mode = current->thread.fpexc_mode; in DEFINE_INTERRUPT_HANDLER()
2132 if ((spefscr & SPEFSCR_FOVF) && (fpexc_mode & PR_FP_EXC_OVF)) { in DEFINE_INTERRUPT_HANDLER()
2135 else if ((spefscr & SPEFSCR_FUNF) && (fpexc_mode & PR_FP_EXC_UND)) { in DEFINE_INTERRUPT_HANDLER()
2138 else if ((spefscr & SPEFSCR_FDBZ) && (fpexc_mode & PR_FP_EXC_DIV)) in DEFINE_INTERRUPT_HANDLER()
2140 else if ((spefscr & SPEFSCR_FINV) && (fpexc_mode & PR_FP_EXC_INV)) { in DEFINE_INTERRUPT_HANDLER()
2143 else if ((spefscr & (SPEFSCR_FG | SPEFSCR_FX)) && (fpexc_mode & PR_FP_EXC_RES)) in DEFINE_INTERRUPT_HANDLER()
Dsignal_64.c602 regs_set_return_msr(regs, regs->msr | (MSR_FP | tsk->thread.fpexc_mode)); in restore_tm_sigcontexts()
Dsignal_32.c700 regs_set_return_msr(regs, regs->msr | (MSR_FP | current->thread.fpexc_mode)); in restore_tm_user_regs()
Dasm-offsets.c107 OFFSET(THREAD_FPEXC_MODE, thread_struct, fpexc_mode); in main()
/linux-6.1.9/arch/powerpc/kernel/ptrace/
Dptrace-tm.c34 return task->thread.ckpt_regs.msr | task->thread.fpexc_mode; in get_user_ckpt_msr()
Dptrace-view.c111 return task->thread.regs->msr | task->thread.fpexc_mode; in get_user_msr()