Home
last modified time | relevance | path

Searched refs:bescr (Results 1 – 15 of 15) sorted by relevance

/openbmc/linux/arch/powerpc/kvm/
H A Dbook3s_hv_tm_builtin.c23 u64 newmsr, msr, bescr; in kvmhv_p9_tm_emulation_early() local
59 bescr = mfspr(SPRN_BESCR); in kvmhv_p9_tm_emulation_early()
61 if (((bescr >> 30) & 3) != 2) in kvmhv_p9_tm_emulation_early()
63 bescr &= ~BESCR_GE; in kvmhv_p9_tm_emulation_early()
65 bescr |= BESCR_GE; in kvmhv_p9_tm_emulation_early()
66 mtspr(SPRN_BESCR, bescr); in kvmhv_p9_tm_emulation_early()
H A Dbook3s_hv_tm.c46 u64 newmsr, bescr; in kvmhv_p9_tm_emulation() local
103 bescr = vcpu->arch.bescr; in kvmhv_p9_tm_emulation()
106 ((bescr >> 30) & 3) == 2)); in kvmhv_p9_tm_emulation()
107 bescr &= ~BESCR_GE; in kvmhv_p9_tm_emulation()
109 bescr |= BESCR_GE; in kvmhv_p9_tm_emulation()
110 vcpu->arch.bescr = bescr; in kvmhv_p9_tm_emulation()
H A Dbook3s_hv_p9_entry.c27 if (current->thread.bescr != vcpu->arch.bescr) in load_spr_state()
28 mtspr(SPRN_BESCR, vcpu->arch.bescr); in load_spr_state()
70 vcpu->arch.bescr = mfspr(SPRN_BESCR); in store_spr_state()
194 if (vcpu->arch.bescr != current->thread.bescr) in restore_p9_host_os_sprs()
195 mtspr(SPRN_BESCR, current->thread.bescr); in restore_p9_host_os_sprs()
H A Dbook3s_emulate.c770 vcpu->arch.bescr = spr_val; in kvmppc_core_emulate_mtspr_pr()
951 *spr_val = vcpu->arch.bescr; in kvmppc_core_emulate_mfspr_pr()
H A Dbook3s.c695 *val = get_reg_val(id, vcpu->arch.bescr); in kvmppc_get_one_reg()
780 vcpu->arch.bescr = set_reg_val(id, *val); in kvmppc_set_one_reg()
/openbmc/linux/tools/testing/selftests/powerpc/pmu/ebb/
H A Debb.c218 u64 bescr; in dump_ebb_hw_state() local
222 bescr = mfspr(SPRN_BESCR); in dump_ebb_hw_state()
237 mfspr(SPRN_EBBHR), bescr, decode_bescr(bescr), in dump_ebb_hw_state()
/openbmc/linux/arch/powerpc/include/asm/
H A Dswitch_to.h114 t->thread.bescr = 0; in clear_task_ebb()
H A Dprocessor.h251 unsigned long bescr; member
H A Dkvm_host.h598 ulong bescr; member
/openbmc/linux/arch/powerpc/kernel/ptrace/
H A Dptrace-view.c353 BUILD_BUG_ON(TSO(ebbhr) + sizeof(unsigned long) != TSO(bescr)); in ebb_get()
372 BUILD_BUG_ON(TSO(ebbhr) + sizeof(unsigned long) != TSO(bescr)); in ebb_set()
390 &target->thread.bescr, 2 * sizeof(unsigned long), in ebb_set()
/openbmc/linux/arch/powerpc/kernel/
H A Dprocess.c1171 t->bescr = mfspr(SPRN_BESCR); in save_sprs()
1249 if (old_thread->bescr != new_thread->bescr) in restore_sprs()
1250 mtspr(SPRN_BESCR, new_thread->bescr); in restore_sprs()
H A Dasm-offsets.c479 OFFSET(VCPU_BESCR, kvm_vcpu, arch.bescr); in main()
/openbmc/qemu/include/hw/ppc/
H A Dspapr_nested.h465 uint64_t bescr; member
/openbmc/qemu/hw/ppc/
H A Dspapr_nested.c189 save->bescr = env->spr[SPR_BESCR]; in nested_save_state()
288 env->spr[SPR_BESCR] = load->bescr; in nested_load_state()
978 GUEST_STATE_ELEMENT_ENV_DW(GSB_VCPU_SPR_BESCR, bescr),
/openbmc/linux/arch/powerpc/perf/
H A Dcore-book3s.c738 if (ebb && !(current->thread.bescr & BESCR_GE)) in pmao_restore_workaround()