Home
last modified time | relevance | path

Searched refs:lpcr_mask (Results 1 – 6 of 6) sorted by relevance

/openbmc/qemu/hw/ppc/
H A Dspapr_nested.c337 target_ulong lpcr, lpcr_mask; in h_enter_nested() local
405 lpcr_mask = LPCR_DPFD | LPCR_ILE | LPCR_AIL | LPCR_LD | LPCR_MER; in h_enter_nested()
406 lpcr = (env->spr[SPR_LPCR] & ~lpcr_mask) | (hv_state.lpcr & lpcr_mask); in h_enter_nested()
409 l2_state.lpcr = lpcr & pcc->lpcr_mask; in h_enter_nested()
1732 target_ulong lpcr, lpcr_mask, hdec; in nested_papr_load_l2() local
1733 lpcr_mask = LPCR_DPFD | LPCR_ILE | LPCR_AIL | LPCR_LD | LPCR_MER; in nested_papr_load_l2()
1738 lpcr = (env->spr[SPR_LPCR] & ~lpcr_mask) | in nested_papr_load_l2()
1739 (vcpu->state.lpcr & lpcr_mask); in nested_papr_load_l2()
1742 env->spr[SPR_LPCR] = lpcr & pcc->lpcr_mask; in nested_papr_load_l2()
/openbmc/qemu/target/ppc/
H A Dcpu.c100 env->spr[SPR_LPCR] = val & pcc->lpcr_mask; in ppc_store_lpcr()
H A Dcpu.h1497 uint64_t lpcr_mask; /* Available bits in the LPCR */ member
3003 } else if (pcc->lpcr_mask & LPCR_ILE) { in ppc_interrupts_little_endian()
H A Dcpu_init.c6080 pcc->lpcr_mask = LPCR_RMLS | LPCR_ILE | LPCR_LPES0 | LPCR_LPES1 | in POWERPC_FAMILY()
6196 pcc->lpcr_mask = LPCR_VPM0 | LPCR_VPM1 | LPCR_ISL | LPCR_DPFD | in POWERPC_FAMILY()
6366 pcc->lpcr_mask = LPCR_VPM0 | LPCR_VPM1 | LPCR_ISL | LPCR_KBV | in POWERPC_FAMILY()
6558 pcc->lpcr_mask = LPCR_VPM1 | LPCR_ISL | LPCR_KBV | LPCR_DPFD | in POWERPC_FAMILY()
6738 pcc->lpcr_mask = LPCR_VPM1 | LPCR_ISL | LPCR_KBV | LPCR_DPFD | in POWERPC_FAMILY()
6746 pcc->lpcr_mask |= LPCR_HAIL; in POWERPC_FAMILY()
H A Dexcp_helper.c306 if (!(pcc->lpcr_mask & LPCR_AIL)) { in ppc_excp_apply_ail()
312 if (!(pcc->lpcr_mask & LPCR_HAIL)) { in ppc_excp_apply_ail()
/openbmc/linux/arch/powerpc/kvm/
H A Dbook3s_hv.c5269 unsigned long lpcr, lpcr_mask; in kvmppc_switch_mmu_to_hpt() local
5282 lpcr_mask = LPCR_VPM1 | LPCR_UPRT | LPCR_GTSE | LPCR_HR; in kvmppc_switch_mmu_to_hpt()
5284 lpcr_mask |= LPCR_HAIL; in kvmppc_switch_mmu_to_hpt()
5285 kvmppc_update_lpcr(kvm, lpcr, lpcr_mask); in kvmppc_switch_mmu_to_hpt()
5296 unsigned long lpcr, lpcr_mask; in kvmppc_switch_mmu_to_radix() local
5310 lpcr_mask = LPCR_VPM1 | LPCR_UPRT | LPCR_GTSE | LPCR_HR; in kvmppc_switch_mmu_to_radix()
5312 lpcr_mask |= LPCR_HAIL; in kvmppc_switch_mmu_to_radix()
5317 kvmppc_update_lpcr(kvm, lpcr, lpcr_mask); in kvmppc_switch_mmu_to_radix()