Home
last modified time | relevance | path

Searched refs:msr_mask (Results 1 – 16 of 16) sorted by relevance

/openbmc/qemu/target/ppc/
H A Dhelper_regs.c134 uint32_t msr_mask; in hreg_compute_hflags_value() local
141 msr_mask = ((1 << MSR_LE) | (1 << MSR_PR) | in hreg_compute_hflags_value()
155 msr_mask |= 1 << MSR_BE; in hreg_compute_hflags_value()
159 msr_mask |= 1 << MSR_SE; in hreg_compute_hflags_value()
171 msr_mask |= 1 << MSR_VR; in hreg_compute_hflags_value()
175 msr_mask |= 1 << MSR_VSX; in hreg_compute_hflags_value()
238 return hflags | (msr & msr_mask); in hreg_compute_hflags_value()
297 value &= env->msr_mask; in hreg_store_msr()
H A Dcpu_init.c2173 pcc->msr_mask = (1ull << MSR_WE) |
3144 pcc->msr_mask = (1ull << MSR_GS) | in POWERPC_FAMILY()
3193 pcc->msr_mask = (1ull << MSR_CM) | in POWERPC_FAMILY()
3242 pcc->msr_mask = (1ull << MSR_CM) | in POWERPC_FAMILY()
6780 env->msr_mask &= ~MSR_HVB; in cpu_ppc_set_vhyp()
6828 if (env->msr_mask & (1 << 25)) { in init_ppc_proc()
6843 if (env->msr_mask & (1 << 17)) { in init_ppc_proc()
6858 if (env->msr_mask & (1 << 10)) { in init_ppc_proc()
6878 if (env->msr_mask & (1 << 9)) { in init_ppc_proc()
6893 if (env->msr_mask & (1 << 2)) { in init_ppc_proc()
[all …]
H A Dmachine.c22 env->msr ^= env->msr_mask & ~((1ULL << MSR_TGPR) | MSR_HVB); in post_load_update_msr()
192 cpu->mig_msr_mask = env->msr_mask & ~metamask; in cpu_pre_save()
H A Darch_dump.c246 if (ppc_interrupts_little_endian(cpu, !!(cpu->env.msr_mask & MSR_HVB))) { in cpu_get_dump_info()
H A Dmisc_helper.c119 if ((env->msr_mask & MSR_HVB) && !FIELD_EX64(env->msr, MSR, HV) && in helper_hfscr_facility_check()
H A Dexcp_helper.c403 assert((msr & env->msr_mask) == msr); in powerpc_set_excp_state()
1356 if (excp == POWERPC_EXCP_HV_EMU && !(env->msr_mask & MSR_HVB) && in powerpc_excp_books()
1375 if (env->msr_mask & MSR_HVB) { in powerpc_excp_books()
1507 if (env->msr_mask & MSR_HVB) { in powerpc_excp_books()
1613 if (!(env->msr_mask & MSR_HVB) && srr0 == SPR_HSRR0) { in powerpc_excp_books()
H A Dcpu.h1322 target_ulong msr_mask; member
1496 uint64_t msr_mask; member
/openbmc/linux/arch/x86/events/
H A Dmsr.c134 static unsigned long msr_mask; variable
219 if (!(msr_mask & (1 << cfg))) in msr_event_init()
310 msr_mask = perf_msr_probe(msr, PERF_MSR_EVENT_MAX, true, NULL); in msr_init()
/openbmc/linux/drivers/cpufreq/
H A Dacpi-cpufreq.c100 u64 msr_mask, val; in boost_set_msr() local
107 msr_mask = MSR_IA32_MISC_ENABLE_TURBO_DISABLE; in boost_set_msr()
112 msr_mask = MSR_K7_HWCR_CPB_DIS; in boost_set_msr()
121 val &= ~msr_mask; in boost_set_msr()
123 val |= msr_mask; in boost_set_msr()
/openbmc/linux/drivers/usb/serial/
H A Df81534.c768 u8 msr_mask; in f81534_check_port_hw_disabled() local
770 msr_mask = UART_MSR_DCD | UART_MSR_RI | UART_MSR_DSR | UART_MSR_CTS; in f81534_check_port_hw_disabled()
777 if ((msr & msr_mask) != msr_mask) in f81534_check_port_hw_disabled()
/openbmc/linux/arch/powerpc/kvm/
H A Dbooke.c419 ulong msr_mask = 0; in kvmppc_booke_irqprio_deliver() local
471 msr_mask = MSR_CE | MSR_ME | MSR_DE; in kvmppc_booke_irqprio_deliver()
479 msr_mask = MSR_ME; in kvmppc_booke_irqprio_deliver()
495 msr_mask = MSR_CE | MSR_ME | MSR_DE; in kvmppc_booke_irqprio_deliver()
501 msr_mask = MSR_ME; in kvmppc_booke_irqprio_deliver()
545 new_msr &= msr_mask; in kvmppc_booke_irqprio_deliver()
H A Dbook3s_pr.c495 msr &= to_book3s(vcpu)->msr_mask; in kvmppc_set_msr_pr()
567 to_book3s(vcpu)->msr_mask = 0xffffffffffffffffULL; in kvmppc_set_pvr_pr()
575 to_book3s(vcpu)->msr_mask = 0xffffffffULL; in kvmppc_set_pvr_pr()
591 to_book3s(vcpu)->msr_mask &= ~(MSR_FE0 | MSR_FE1); in kvmppc_set_pvr_pr()
/openbmc/linux/arch/powerpc/kernel/
H A Dtraps.c890 unsigned long ea, msr, msr_mask; in p9_hmi_special_emu() local
975 msr_mask = MSR_VSX; in p9_hmi_special_emu()
977 msr_mask = MSR_VEC; in p9_hmi_special_emu()
978 if (!(msr & msr_mask)) { in p9_hmi_special_emu()
/openbmc/qemu/hw/ppc/
H A Dspapr_nested.c552 regs->msr = l2_state.srr1 & env->msr_mask; in spapr_exit_nested_hv()
555 regs->msr = hsrr1 & env->msr_mask; in spapr_exit_nested_hv()
1564 vcpu->state.msr = env->spr[SPR_SRR1] & env->msr_mask; in exit_nested_store_l2()
1567 vcpu->state.msr = env->spr[SPR_HSRR1] & env->msr_mask; in exit_nested_store_l2()
/openbmc/linux/arch/powerpc/include/asm/
H A Dkvm_book3s.h112 u64 msr_mask; member
/openbmc/qemu/target/arm/tcg/
H A Dtranslate.c2620 static uint32_t msr_mask(DisasContext *s, int flags, int spsr) in msr_mask() function
4552 uint32_t mask = msr_mask(s, a->mask, a->r); in trans_MSR_imm()
4655 uint32_t mask = msr_mask(s, a->mask, a->r); in trans_MSR_reg()