/openbmc/linux/arch/powerpc/kernel/ |
H A D | cpu_setup_power.c | 62 u64 fscr; in init_FSCR() local 64 fscr = mfspr(SPRN_FSCR); in init_FSCR() 65 fscr |= FSCR_TAR|FSCR_EBB; in init_FSCR() 66 mtspr(SPRN_FSCR, fscr); in init_FSCR() 71 u64 fscr; in init_FSCR_power9() local 73 fscr = mfspr(SPRN_FSCR); in init_FSCR_power9() 74 fscr |= FSCR_SCV; in init_FSCR_power9() 75 mtspr(SPRN_FSCR, fscr); in init_FSCR_power9() 81 u64 fscr; in init_FSCR_power10() local 83 fscr = mfspr(SPRN_FSCR); in init_FSCR_power10() [all …]
|
H A D | dt_cpu_ftrs.c | 72 u64 fscr; member 87 mtspr(SPRN_FSCR, system_registers.fscr); in __restore_cpu_cpufeatures() 148 u64 fscr = mfspr(SPRN_FSCR); in feat_try_enable_unknown() local 149 fscr |= 1UL << f->fscr_bit_nr; in feat_try_enable_unknown() 150 mtspr(SPRN_FSCR, fscr); in feat_try_enable_unknown() 183 u64 fscr = mfspr(SPRN_FSCR); in feat_enable() local 184 fscr |= 1UL << f->fscr_bit_nr; in feat_enable() 185 mtspr(SPRN_FSCR, fscr); in feat_enable() 813 system_registers.fscr = mfspr(SPRN_FSCR); in cpufeatures_setup_finished()
|
H A D | setup_64.c | 236 init_task.thread.fscr &= ~FSCR_SCV; in configure_exceptions() 242 init_task.thread.fscr &= ~FSCR_SCV; in configure_exceptions()
|
H A D | process.c | 1175 t->fscr = mfspr(SPRN_FSCR); in save_sprs() 1256 if (old_thread->fscr != new_thread->fscr) in restore_sprs() 1257 mtspr(SPRN_FSCR, new_thread->fscr); in restore_sprs()
|
H A D | prom.c | 770 init_task.thread.fscr = mfspr(SPRN_FSCR); in save_fscr_to_task()
|
H A D | traps.c | 1811 current->thread.fscr |= FSCR_DSCR; in DEFINE_INTERRUPT_HANDLER() 1812 mtspr(SPRN_FSCR, current->thread.fscr); in DEFINE_INTERRUPT_HANDLER()
|
H A D | asm-offsets.c | 475 OFFSET(VCPU_FSCR, kvm_vcpu, arch.fscr); in main()
|
/openbmc/linux/arch/powerpc/kvm/ |
H A D | book3s_hv_tm.c | 96 if ((msr & MSR_PR) && !(vcpu->arch.fscr & FSCR_EBB)) { in kvmhv_p9_tm_emulation() 98 vcpu->arch.fscr &= ~FSCR_INTR_CAUSE; in kvmhv_p9_tm_emulation() 99 vcpu->arch.fscr |= (u64)FSCR_EBB_LG << 56; in kvmhv_p9_tm_emulation() 149 vcpu->arch.fscr &= ~FSCR_INTR_CAUSE; in kvmhv_p9_tm_emulation() 150 vcpu->arch.fscr |= (u64)FSCR_TM_LG << 56; in kvmhv_p9_tm_emulation() 181 vcpu->arch.fscr &= ~FSCR_INTR_CAUSE; in kvmhv_p9_tm_emulation() 182 vcpu->arch.fscr |= (u64)FSCR_TM_LG << 56; in kvmhv_p9_tm_emulation() 221 vcpu->arch.fscr &= ~FSCR_INTR_CAUSE; in kvmhv_p9_tm_emulation() 222 vcpu->arch.fscr |= (u64)FSCR_TM_LG << 56; in kvmhv_p9_tm_emulation()
|
H A D | book3s_pr.c | 145 if (cpu_has_feature(CPU_FTR_ARCH_300) && (current->thread.fscr & FSCR_SCV)) in kvmppc_core_vcpu_load_pr() 176 if (cpu_has_feature(CPU_FTR_ARCH_300) && (current->thread.fscr & FSCR_SCV)) in kvmppc_core_vcpu_put_pr() 404 if (vcpu->arch.fscr & FSCR_TAR) in kvmppc_restore_tm_pr() 416 if (vcpu->arch.fscr & FSCR_TAR) in kvmppc_restore_tm_pr() 969 vcpu->arch.fscr &= ~(0xffULL << 56); in kvmppc_trigger_fac_interrupt() 970 vcpu->arch.fscr |= (fac << 56); in kvmppc_trigger_fac_interrupt() 1000 guest_fac_enabled = (vcpu->arch.fscr & (1ULL << fac)); in kvmppc_handle_fac() 1043 void kvmppc_set_fscr(struct kvm_vcpu *vcpu, u64 fscr) in kvmppc_set_fscr() argument 1045 if (fscr & FSCR_SCV) in kvmppc_set_fscr() 1046 fscr &= ~FSCR_SCV; /* SCV must not be enabled */ in kvmppc_set_fscr() [all …]
|
H A D | book3s_hv_p9_entry.c | 40 if (current->thread.fscr != vcpu->arch.fscr) in load_spr_state() 41 mtspr(SPRN_FSCR, vcpu->arch.fscr); in load_spr_state() 78 vcpu->arch.fscr = mfspr(SPRN_FSCR); in store_spr_state() 177 if (current->thread.fscr != vcpu->arch.fscr) in restore_p9_host_os_sprs() 178 mtspr(SPRN_FSCR, current->thread.fscr); in restore_p9_host_os_sprs()
|
H A D | book3s_hv.h | 98 KVMPPC_BOOK3S_HV_VCPU_ACCESSOR(fscr, 64)
|
H A D | book3s.c | 683 *val = get_reg_val(id, vcpu->arch.fscr); in kvmppc_get_one_reg() 768 vcpu->arch.fscr = set_reg_val(id, *val); in kvmppc_set_one_reg()
|
H A D | book3s_emulate.c | 948 *spr_val = vcpu->arch.fscr; in kvmppc_core_emulate_mfspr_pr()
|
/openbmc/linux/arch/powerpc/platforms/powernv/ |
H A D | idle.c | 301 u64 fscr; member 352 sprs.fscr = mfspr(SPRN_FSCR); in power7_idle_insn() 486 mtspr(SPRN_FSCR, sprs.fscr); in power7_idle_insn() 589 u64 fscr; member 666 sprs.fscr = mfspr(SPRN_FSCR); in power9_idle_stop() 782 mtspr(SPRN_FSCR, sprs.fscr); in power9_idle_stop()
|
/openbmc/linux/Documentation/devicetree/bindings/powerpc/ |
H A D | ibm,powerpc-cpu-features.txt | 144 If the FSCR bit is set, then the fscr-bit-nr property will exist and 161 - fscr-bit-nr 243 fscr-bit-nr = <xx>;
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | processor.h | 234 unsigned long fscr; member
|
H A D | kvm_book3s.h | 265 extern void kvmppc_set_fscr(struct kvm_vcpu *vcpu, u64 fscr);
|
H A D | kvm_host.h | 594 ulong fscr; member
|
/openbmc/qemu/include/hw/ppc/ |
H A D | spapr_nested.h | 470 uint64_t fscr; member
|
/openbmc/qemu/hw/ppc/ |
H A D | spapr_nested.c | 194 save->fscr = env->spr[SPR_FSCR]; in nested_save_state() 293 env->spr[SPR_FSCR] = load->fscr; in nested_load_state() 983 GUEST_STATE_ELEMENT_ENV_DW(GSB_VCPU_SPR_FSCR, fscr),
|