Home
last modified time | relevance | path

Searched refs:MSR_VEC (Results 1 – 20 of 20) sorted by relevance

/arch/powerpc/kernel/
Dprocess.c243 msr &= ~MSR_VEC; in __giveup_altivec()
253 msr_check_and_set(MSR_VEC); in giveup_altivec()
255 msr_check_and_clear(MSR_VEC); in giveup_altivec()
265 cpumsr = msr_check_and_set(MSR_VEC); in enable_kernel_altivec()
267 if (current->thread.regs && (current->thread.regs->msr & MSR_VEC)) { in enable_kernel_altivec()
292 if (tsk->thread.regs->msr & MSR_VEC) { in flush_altivec_to_thread()
311 WARN_ON((msr & MSR_VSX) && !((msr & MSR_FP) && (msr & MSR_VEC))); in __giveup_vsx()
316 if (msr & MSR_VEC) in __giveup_vsx()
324 msr_check_and_set(MSR_FP|MSR_VEC|MSR_VSX); in giveup_vsx()
326 msr_check_and_clear(MSR_FP|MSR_VEC|MSR_VSX); in giveup_vsx()
[all …]
Dsignal_64.c127 msr |= MSR_VEC; in setup_sigcontext()
223 msr |= tsk->thread.ckpt_regs.msr & (MSR_FP | MSR_VEC | MSR_VSX); in setup_tm_sigcontexts()
237 if (msr & MSR_VEC) in setup_tm_sigcontexts()
249 msr |= MSR_VEC; in setup_tm_sigcontexts()
257 if (msr & MSR_VEC) in setup_tm_sigcontexts()
369 regs->msr &= ~(MSR_FP | MSR_FE0 | MSR_FE1 | MSR_VEC | MSR_VSX); in restore_sigcontext()
378 if (v_regs != NULL && (msr & MSR_VEC) != 0) { in restore_sigcontext()
487 regs->msr &= ~(MSR_FP | MSR_FE0 | MSR_FE1 | MSR_VEC | MSR_VSX); in restore_tm_sigcontexts()
499 if (v_regs != NULL && tm_v_regs != NULL && (msr & MSR_VEC) != 0) { in restore_tm_sigcontexts()
580 msr_check_and_set(msr & (MSR_FP | MSR_VEC)); in restore_tm_sigcontexts()
[all …]
Dsyscall_64.c220 mathflags |= MSR_VEC | MSR_VSX; in syscall_exit_prepare()
222 mathflags |= MSR_VEC; in syscall_exit_prepare()
299 mathflags |= MSR_VEC | MSR_VSX; in interrupt_exit_user_prepare()
301 mathflags |= MSR_VEC; in interrupt_exit_user_prepare()
Dvector.S51 oris r5,r5,MSR_VEC@h
70 oris r9,r9,MSR_VEC@h
77 oris r12,r12,MSR_VEC@h
128 andis. r5,r12,MSR_VEC@h
Dsignal_32.c260 msr |= MSR_VEC; in save_user_regs()
372 if (msr & MSR_VEC) { in save_tm_user_regs()
387 msr |= MSR_VEC; in save_tm_user_regs()
400 if (msr & MSR_VEC) { in save_tm_user_regs()
514 regs->msr &= ~MSR_VEC; in restore_user_regs()
515 if (msr & MSR_VEC) { in restore_user_regs()
617 regs->msr &= ~MSR_VEC; in restore_tm_user_regs()
618 if (msr & MSR_VEC) { in restore_tm_user_regs()
723 msr_check_and_set(msr & (MSR_FP | MSR_VEC)); in restore_tm_user_regs()
729 if (msr & MSR_VEC) { in restore_tm_user_regs()
[all …]
Dtm.S139 oris r15, r15, MSR_VEC@h
392 oris r5, r5, MSR_VEC@h
Dentry_32.S722 oris r0,r0,MSR_VEC@h /* Disable altivec */
Dtraps.c979 msr_mask = MSR_VEC; in p9_hmi_special_emu()
/arch/powerpc/include/asm/
Dswitch_to.h60 msr_check_and_clear(MSR_VEC); in disable_kernel_altivec()
72 msr_check_and_clear(MSR_FP|MSR_VEC|MSR_VSX); in disable_kernel_vsx()
Dreg.h91 #define MSR_VEC __MASK(MSR_VEC_LG) /* Enable AltiVec */ macro
/arch/powerpc/lib/
Dldstfp.S72 oris r7, r6, MSR_VEC@h
96 oris r7, r6, MSR_VEC@h
Dsstep.c626 if (regs->msr & MSR_VEC) in do_vec_load()
652 if (regs->msr & MSR_VEC) in do_vec_store()
892 if (regs->msr & MSR_VEC) in do_vsx_load()
923 if (regs->msr & MSR_VEC) in do_vsx_store()
3263 if (!(regs->msr & MSR_PR) && !(regs->msr & MSR_VEC)) in emulate_loadstore()
3277 msrbit = MSR_VEC; in emulate_loadstore()
3334 if (!(regs->msr & MSR_PR) && !(regs->msr & MSR_VEC)) in emulate_loadstore()
3348 msrbit = MSR_VEC; in emulate_loadstore()
Dtest_emulate_step.c72 regs->msr |= MSR_VEC; in init_pt_regs()
/arch/powerpc/kvm/
Demulate_loadstore.c54 if (!(kvmppc_get_msr(vcpu) & MSR_VEC)) { in kvmppc_check_altivec_disabled()
270 MSR_VEC); in kvmppc_emulate_loadstore()
Dbook3s_pr.c172 kvmppc_giveup_ext(vcpu, MSR_FP | MSR_VEC | MSR_VSX); in kvmppc_core_vcpu_put_pr()
361 (MSR_FP | MSR_VEC | MSR_VSX); in kvmppc_handle_lost_math_exts()
368 else if (ext_diff == MSR_VEC) in kvmppc_handle_lost_math_exts()
829 msr |= MSR_FP | MSR_VEC; in kvmppc_giveup_ext()
851 if (msr & MSR_VEC) { in kvmppc_giveup_ext()
852 if (current->thread.regs->msr & MSR_VEC) in kvmppc_giveup_ext()
910 msr = MSR_FP | MSR_VEC | MSR_VSX; in kvmppc_handle_ext()
931 if (msr & MSR_VEC) { in kvmppc_handle_ext()
969 if (lost_ext & MSR_VEC) { in kvmppc_handle_lost_ext()
1386 ext_msr = MSR_VEC; in kvmppc_handle_exit_pr()
[all …]
Dtm.S45 oris r8, r8, (MSR_VEC | MSR_VSX)@h
239 oris r5, r5, (MSR_VEC | MSR_VSX)@h
Dbooke.c176 if (!(current->thread.regs->msr & MSR_VEC)) { in kvmppc_load_guest_altivec()
181 current->thread.regs->msr |= MSR_VEC; in kvmppc_load_guest_altivec()
195 if (current->thread.regs->msr & MSR_VEC) in kvmppc_save_guest_altivec()
Dbook3s_hv_rmhandlers.S3074 oris r8,r8,MSR_VEC@h
3109 oris r8,r8,MSR_VEC@h
Dpowerpc.c1198 vcpu->kvm->arch.kvm_ops->giveup_ext(vcpu, MSR_VEC); in kvmppc_complete_mmio_load()
Dbook3s_hv.c3651 msr_check_and_set(MSR_FP | MSR_VEC | MSR_VSX); in kvmhv_p9_guest_entry()
3763 msr_check_and_set(MSR_FP | MSR_VEC | MSR_VSX); in kvmhv_p9_guest_entry()