Home
last modified time | relevance | path

Searched refs:MSR_PR (Results 1 – 25 of 42) sorted by relevance

12

/linux-6.1.9/tools/testing/selftests/powerpc/signal/
Dsigreturn_kernel.c17 #define MSR_PR (1ul << 14) macro
112 sigreturn_msr_mask = ~MSR_PR; in test_sigreturn_kernel()
119 sigreturn_msr_mask = ~MSR_PR; in test_sigreturn_kernel()
/linux-6.1.9/arch/powerpc/kvm/
Dbook3s_hv_tm_builtin.c53 if ((msr & MSR_PR) && (vcpu->arch.vcore->pcr & PCR_ARCH_206)) in kvmhv_p9_tm_emulation_early()
57 ((msr & MSR_PR) && !(mfspr(SPRN_FSCR) & FSCR_EBB))) in kvmhv_p9_tm_emulation_early()
92 if ((msr & MSR_PR) && (vcpu->arch.vcore->pcr & PCR_ARCH_206)) in kvmhv_p9_tm_emulation_early()
Dbook3s_emulate.c77 if ((kvmppc_get_msr(vcpu) & MSR_PR) && level > PRIV_PROBLEM) in spr_allowed()
145 if (kvmppc_get_msr(vcpu) & MSR_PR) in kvmppc_emulate_treclaim()
220 if (guest_msr & MSR_PR) in kvmppc_emulate_tabort()
361 if ((kvmppc_get_msr(vcpu) & MSR_PR) || in kvmppc_core_emulate_op_pr()
497 if (!(kvmppc_get_msr(vcpu) & MSR_PR)) { in kvmppc_core_emulate_op_pr()
539 WARN_ON(guest_msr & MSR_PR); in kvmppc_core_emulate_op_pr()
562 if (guest_msr & MSR_PR) { in kvmppc_core_emulate_op_pr()
596 if (guest_msr & MSR_PR) { in kvmppc_core_emulate_op_pr()
848 if (kvmppc_get_msr(vcpu) & MSR_PR) { in kvmppc_core_emulate_mtspr_pr()
853 if ((kvmppc_get_msr(vcpu) & MSR_PR) || sprn == 0) { in kvmppc_core_emulate_mtspr_pr()
[all …]
Dbook3s_32_mmu.c141 if (kvmppc_get_msr(vcpu) & MSR_PR) { in kvmppc_mmu_book3s_32_xlate_bat()
224 if ((sr_kp(sre) && (kvmppc_get_msr(vcpu) & MSR_PR)) || in kvmppc_mmu_book3s_32_xlate_pte()
225 (sr_ks(sre) && !(kvmppc_get_msr(vcpu) & MSR_PR))) in kvmppc_mmu_book3s_32_xlate_pte()
303 !(kvmppc_get_msr(vcpu) & MSR_PR)) { in kvmppc_mmu_book3s_32_xlate()
385 if (msr & MSR_PR) in kvmppc_mmu_book3s_32_esid_to_vsid()
Dbook3s_hv_tm.c25 if (msr & MSR_PR) { in emulate_tx_failure()
84 if ((msr & MSR_PR) && (vcpu->arch.vcore->pcr & PCR_ARCH_206)) { in kvmhv_p9_tm_emulation()
96 if ((msr & MSR_PR) && !(vcpu->arch.fscr & FSCR_EBB)) { in kvmhv_p9_tm_emulation()
135 if ((msr & MSR_PR) && (vcpu->arch.vcore->pcr & PCR_ARCH_206)) { in kvmhv_p9_tm_emulation()
Dbook3s_64_mmu.c212 !(kvmppc_get_msr(vcpu) & MSR_PR)) { in kvmppc_mmu_book3s_64_xlate()
257 if ((kvmppc_get_msr(vcpu) & MSR_PR) && slbe->Kp) in kvmppc_mmu_book3s_64_xlate()
259 else if (!(kvmppc_get_msr(vcpu) & MSR_PR) && slbe->Ks) in kvmppc_mmu_book3s_64_xlate()
301 !(kvmppc_get_msr(vcpu) & MSR_PR)) in kvmppc_mmu_book3s_64_xlate()
567 return mp_ea && !(kvmppc_get_msr(vcpu) & MSR_PR) && in segment_contains_magic_page()
628 if (kvmppc_get_msr(vcpu) & MSR_PR) in kvmppc_mmu_book3s_64_esid_to_vsid()
638 !(kvmppc_get_msr(vcpu) & MSR_PR)) { in kvmppc_mmu_book3s_64_esid_to_vsid()
Dbook3s_pr.c244 smsr |= MSR_ME | MSR_RI | MSR_IR | MSR_DR | MSR_PR | MSR_EE; in kvmppc_recalc_shadow_msr()
257 if (!(guest_msr & MSR_PR)) in kvmppc_recalc_shadow_msr()
326 if (unlikely((old_msr & MSR_PR) && in kvmppc_copy_from_svcpu()
489 if (!(msr & MSR_PR) && MSR_TM_TRANSACTIONAL(msr)) in kvmppc_set_msr_pr()
515 if ((kvmppc_get_msr(vcpu) & (MSR_PR|MSR_IR|MSR_DR)) != in kvmppc_set_msr_pr()
516 (old_msr & (MSR_PR|MSR_IR|MSR_DR))) { in kvmppc_set_msr_pr()
521 if (!(msr & MSR_PR) && vcpu->arch.magic_page_pa) { in kvmppc_set_msr_pr()
540 !(old_msr & MSR_PR) && !(old_msr & MSR_SF) && (msr & MSR_SF)) { in kvmppc_set_msr_pr()
978 if (!(kvmppc_get_msr(vcpu) & MSR_PR)) in kvmppc_emulate_fac()
1036 if ((fac == FSCR_TM_LG) && !(kvmppc_get_msr(vcpu) & MSR_PR)) in kvmppc_handle_fac()
[all …]
Dbook3s_32_mmu_host.c84 if (kvmppc_get_msr(vcpu) & MSR_PR) in find_sid_vsid()
270 if (kvmppc_get_msr(vcpu) & MSR_PR) in create_sid_map()
Dbook3s_64_mmu_host.c51 if (kvmppc_get_msr(vcpu) & MSR_PR) in find_sid_vsid()
233 if (kvmppc_get_msr(vcpu) & MSR_PR) in create_sid_map()
De500.h220 return !!(vcpu->arch.shared->msr & MSR_PR); in get_cur_pr()
Dbooke.c434 crit = crit && !(vcpu->arch.shared->msr & MSR_PR); in kvmppc_booke_irqprio_deliver()
1142 if (vcpu->arch.shared->msr & (MSR_PR | MSR_GS)) { in kvmppc_handle_exit()
1246 if (!(vcpu->arch.shared->msr & MSR_PR)) { in kvmppc_handle_exit()
1260 if (!(vcpu->arch.shared->msr & MSR_PR) && in kvmppc_handle_exit()
1281 if (!(vcpu->arch.shared->msr & MSR_PR) && in kvmppc_handle_exit()
1977 if (!(vcpu->arch.shared->msr & MSR_PR) && in kvmppc_xlate()
De500_mmu_host.c311 u32 pr = vcpu->arch.shared->msr & MSR_PR; in kvmppc_e500_setup_stlbe()
672 pr = vcpu->arch.shared->msr & MSR_PR; in kvmppc_load_last_inst()
/linux-6.1.9/arch/powerpc/include/asm/
Dreg_booke.h43 #define MSR_USER32 (MSR_ | MSR_PR | MSR_EE)
47 #define MSR_USER (MSR_KERNEL|MSR_PR|MSR_EE)
50 #define MSR_USER (MSR_KERNEL|MSR_PR|MSR_EE)
Dptrace.h212 #define user_mode(regs) (((regs)->msr & MSR_PR) != 0)
Dreg.h96 #define MSR_PR __MASK(MSR_PR_LG) /* Problem State / Privilege Level */ macro
143 #define MSR_USER32 (MSR_ | MSR_PR | MSR_EE)
148 #define MSR_USER (MSR_KERNEL|MSR_PR|MSR_EE)
/linux-6.1.9/arch/powerpc/kernel/
Dhead_32.h42 andi. r11, r11, MSR_PR
135 andi. r12,r9,MSR_PR
Dexceptions-64e.S75 andi. r3,r3,MSR_PR
137 andi. r3,r3,MSR_PR
256 andi. r10,r11,MSR_PR; /* save stack pointer */ \
585 andi. r0,r12,MSR_PR;
602 andi. r0,r12,MSR_PR;
723 1: andi. r14,r11,MSR_PR; /* check for userspace again */
794 1: andi. r14,r11,MSR_PR; /* check for userspace again */
Dsyscall.c34 BUG_ON(!(regs->msr & MSR_PR)); in system_call_exception()
Dhead_booke.h55 andi. r11, r11, MSR_PR; /* check whether user or kernel */\
107 andi. r12,r9,MSR_PR
203 andi. r11,r11,MSR_PR; \
Dentry_32.S297 andi. r0,r4,MSR_PR
452 andi. r3,r3,MSR_PR; \
Dhead_40x.S121 andi. r11,r11,MSR_PR
481 andi. r10,r9,MSR_IR|MSR_PR /* check supervisor + MMU off */
Dinterrupt_64.S382 andi. r0,r5,MSR_PR
405 andi. r0,r4,MSR_PR
Dexceptions-64s.S435 andi. r10,r12,MSR_PR
490 andi. r10,r12,MSR_PR /* See if coming from user */
1251 andi. r11,r12,MSR_PR /* See if coming from user. */
1709 andi. r10,r12,MSR_PR
1720 andi. r10,r12,MSR_PR /* Set CR0 correctly for label */
/linux-6.1.9/arch/powerpc/lib/
Dsstep.c1422 if (regs->msr & MSR_PR) in analyse_instr()
1735 if (regs->msr & MSR_PR) in analyse_instr()
1741 if (regs->msr & MSR_PR) in analyse_instr()
1749 if (regs->msr & MSR_PR) in analyse_instr()
3429 if (!(regs->msr & MSR_PR) && !(regs->msr & MSR_FP)) in emulate_loadstore()
3436 if (!(regs->msr & MSR_PR) && !(regs->msr & MSR_VEC)) in emulate_loadstore()
3451 if (!(regs->msr & MSR_PR) && !(regs->msr & msrbit)) in emulate_loadstore()
3488 !(regs->msr & MSR_PR) && in emulate_loadstore()
3500 if (!(regs->msr & MSR_PR) && !(regs->msr & MSR_FP)) in emulate_loadstore()
3507 if (!(regs->msr & MSR_PR) && !(regs->msr & MSR_VEC)) in emulate_loadstore()
[all …]
/linux-6.1.9/arch/powerpc/xmon/
Dxmon.c555 if ((regs->msr & (MSR_IR|MSR_PR|MSR_64BIT)) == (MSR_IR|MSR_64BIT)) in xmon_core()
714 if ((regs->msr & (MSR_IR|MSR_PR|MSR_64BIT)) == (MSR_IR|MSR_64BIT)) { in xmon_core()
767 if ((regs->msr & (MSR_IR|MSR_PR|MSR_64BIT)) != (MSR_IR|MSR_64BIT)) in xmon_bpt()
800 if ((regs->msr & (MSR_IR|MSR_PR|MSR_64BIT)) != (MSR_IR|MSR_64BIT)) in xmon_break_match()
815 if ((regs->msr & (MSR_IR|MSR_PR|MSR_64BIT)) != (MSR_IR|MSR_64BIT)) in xmon_iabr_match()
840 if ((regs->msr & (MSR_IR|MSR_PR|MSR_64BIT)) == (MSR_IR|MSR_64BIT)) { in xmon_fault_handler()
1211 if ((regs->msr & (MSR_64BIT|MSR_PR|MSR_IR)) == (MSR_64BIT|MSR_IR)) { in do_step()
1826 if (regs->msr & MSR_PR) in print_bug_trap()

12