Lines Matching refs:msr
97 MSR_TM_ACTIVE(tsk->thread.regs->msr) && in check_if_tm_restore_required()
100 tsk->thread.regs->msr); in check_if_tm_restore_required()
158 unsigned long msr; in __giveup_fpu() local
161 msr = tsk->thread.regs->msr; in __giveup_fpu()
162 msr &= ~(MSR_FP|MSR_FE0|MSR_FE1); in __giveup_fpu()
164 msr &= ~MSR_VSX; in __giveup_fpu()
165 regs_set_return_msr(tsk->thread.regs, msr); in __giveup_fpu()
194 if (tsk->thread.regs->msr & MSR_FP) { in flush_fp_to_thread()
218 if (current->thread.regs && (current->thread.regs->msr & MSR_FP)) { in enable_kernel_fp()
228 MSR_TM_ACTIVE(current->thread.regs->msr)) in enable_kernel_fp()
241 unsigned long msr; in __giveup_altivec() local
244 msr = tsk->thread.regs->msr; in __giveup_altivec()
245 msr &= ~MSR_VEC; in __giveup_altivec()
247 msr &= ~MSR_VSX; in __giveup_altivec()
248 regs_set_return_msr(tsk->thread.regs, msr); in __giveup_altivec()
269 if (current->thread.regs && (current->thread.regs->msr & MSR_VEC)) { in enable_kernel_altivec()
279 MSR_TM_ACTIVE(current->thread.regs->msr)) in enable_kernel_altivec()
294 if (tsk->thread.regs->msr & MSR_VEC) { in flush_altivec_to_thread()
307 unsigned long msr = tsk->thread.regs->msr; in __giveup_vsx() local
313 WARN_ON((msr & MSR_VSX) && !((msr & MSR_FP) && (msr & MSR_VEC))); in __giveup_vsx()
316 if (msr & MSR_FP) in __giveup_vsx()
318 if (msr & MSR_VEC) in __giveup_vsx()
340 (current->thread.regs->msr & (MSR_VSX|MSR_VEC|MSR_FP))) { in enable_kernel_vsx()
350 MSR_TM_ACTIVE(current->thread.regs->msr)) in enable_kernel_vsx()
361 if (tsk->thread.regs->msr & (MSR_VSX|MSR_VEC|MSR_FP)) { in flush_vsx_to_thread()
388 if (current->thread.regs && (current->thread.regs->msr & MSR_SPE)) { in enable_kernel_spe()
399 if (tsk->thread.regs->msr & MSR_SPE) { in flush_spe_to_thread()
435 usermsr = tsk->thread.regs->msr; in giveup_all()
522 unsigned long msr; in restore_math() local
525 msr = regs->msr; in restore_math()
532 if ((!(msr & MSR_FP)) && should_restore_fp()) in restore_math()
535 if ((!(msr & MSR_VEC)) && should_restore_altivec()) in restore_math()
538 if ((!(msr & MSR_VSX)) && should_restore_vsx()) { in restore_math()
539 if (((msr | new_msr) & (MSR_FP | MSR_VEC)) == (MSR_FP | MSR_VEC)) in restore_math()
563 regs_set_return_msr(regs, regs->msr | new_msr | fpexc_mode); in restore_math()
575 usermsr = tsk->thread.regs->msr; in save_all()
602 if (tsk->thread.regs->msr & MSR_SPE) in flush_all_to_thread()
901 return tsk && tsk->thread.regs && (tsk->thread.regs->msr & MSR_TM); in tm_enabled()
940 if ((thr->ckpt_regs.msr & MSR_FP) == 0) in tm_reclaim_thread()
943 if ((thr->ckpt_regs.msr & MSR_VEC) == 0) in tm_reclaim_thread()
971 if (!MSR_TM_ACTIVE(thr->regs->msr)) in tm_reclaim_task()
979 thr->regs->ccr, thr->regs->msr, in tm_reclaim_task()
1002 if (!(thread->regs->msr & MSR_TM)) in tm_recheckpoint()
1038 if (!MSR_TM_ACTIVE(new->thread.regs->msr)){ in tm_recheckpoint_new_task()
1044 new->pid, new->thread.regs->msr); in tm_recheckpoint_new_task()
1053 new->thread.regs->msr &= ~(MSR_FP | MSR_VEC | MSR_VSX); in tm_recheckpoint_new_task()
1070 if (!MSR_TM_ACTIVE(prev->thread.regs->msr) && prev->thread.load_tm == 0) in __switch_to_tm()
1071 prev->thread.regs->msr &= ~MSR_TM; in __switch_to_tm()
1103 if (!MSR_TM_ACTIVE(regs->msr)) in restore_tm_state()
1106 msr_diff = current->thread.ckpt_regs.msr & ~regs->msr; in restore_tm_state()
1118 regs_set_return_msr(regs, regs->msr | msr_diff); in restore_tm_state()
1335 if (!IS_ENABLED(CONFIG_BOOKE) && !(regs->msr & MSR_IR)) { in show_instructions()
1492 printk("MSR: "REG" ", regs->msr); in __show_regs()
1493 print_msr_bits(regs->msr); in __show_regs()
1511 if (MSR_TM_ACTIVE(regs->msr)) in __show_regs()
1740 childregs->msr &= ~(MSR_FP|MSR_VEC|MSR_VSX); in copy_thread()
1831 regs->msr = MSR_USER; in start_thread()
1957 if (regs != NULL && (regs->msr & MSR_FP) != 0) { in set_fpexc_mode()
1958 regs_set_return_msr(regs, (regs->msr & ~(MSR_FE0|MSR_FE1)) in set_fpexc_mode()
2006 regs_set_return_msr(regs, regs->msr & ~MSR_LE); in set_endian()
2008 regs_set_return_msr(regs, regs->msr | MSR_LE); in set_endian()
2027 if (regs->msr & MSR_LE) { in get_endian()