Home
last modified time | relevance | path

Searched refs:vscr (Results 1 – 19 of 19) sorted by relevance

/openbmc/qemu/target/ppc/
H A Dcpu.c55 void ppc_store_vscr(CPUPPCState *env, uint32_t vscr) in ppc_store_vscr() argument
57 env->vscr = vscr & ~(1u << VSCR_SAT); in ppc_store_vscr()
59 env->vscr_sat.u64[0] = vscr & (1u << VSCR_SAT); in ppc_store_vscr()
61 set_flush_to_zero((vscr >> VSCR_NJ) & 1, &env->vec_status); in ppc_store_vscr()
62 set_flush_inputs_to_zero((vscr >> VSCR_NJ) & 1, &env->vec_status); in ppc_store_vscr()
68 return env->vscr | (sat << VSCR_SAT); in ppc_get_vscr()
H A Darch_dump.c69 ppc_avr_t vscr; member
184 vmxregset->vscr.u32[3] = cpu_to_dump32(s, ppc_get_vscr(&cpu->env)); in ppc_write_elf_vmxregset()
H A Dcpu.h1290 uint32_t vscr; member
3016 void ppc_store_vscr(CPUPPCState *env, uint32_t vscr);
H A Dkvm.c668 reg.addr = (uintptr_t)&env->vscr; in kvm_put_fp()
741 reg.addr = (uintptr_t)&env->vscr; in kvm_get_fp()
H A Dint_helper.c480 void helper_mtvscr(CPUPPCState *env, uint32_t vscr) in SATCVT()
482 ppc_store_vscr(env, vscr); in SATCVT()
/openbmc/linux/arch/powerpc/kernel/ptrace/
H A Dptrace-altivec.c53 BUILD_BUG_ON(offsetof(struct thread_vr_state, vscr) != in vr_get()
87 BUILD_BUG_ON(offsetof(struct thread_vr_state, vscr) != in vr_set()
H A Dptrace-tm.c349 BUILD_BUG_ON(TVSO(vscr) != TVSO(vr[32])); in tm_cvmx_get()
399 BUILD_BUG_ON(TVSO(vscr) != TVSO(vr[32])); in tm_cvmx_set()
/openbmc/qemu/hw/arm/
H A Dnseries.c441 int vscr; member
462 s->vscr = 0; in mipid_reset()
525 s->resp[2] = (s->vscr << 7) | (s->invert << 5) | in mipid_txrx()
545 s->resp[0] = (s->invert << 5) | (s->vscr << 7) | s->gamma; in mipid_txrx()
567 s->vscr = 0; in mipid_txrx()
572 s->vscr = 0; in mipid_txrx()
636 s->vscr = 1; in mipid_txrx()
/openbmc/linux/arch/powerpc/kernel/
H A Dvecemu.c329 &current->thread.vr_state.vscr.u[3]); in emulate_altivec()
334 &current->thread.vr_state.vscr.u[3]); in emulate_altivec()
H A Dasm-offsets.c117 OFFSET(VRSTATE_VSCR, thread_vr_state, vscr); in main()
H A Dtraps.c2128 current->thread.vr_state.vscr.u[3] |= 0x10000; in DEFINE_INTERRUPT_HANDLER()
H A Dprocess.c1980 current->thread.vr_state.vscr.u[3] = 0x00010000; /* Java mode disabled */ in start_thread()
/openbmc/linux/arch/powerpc/include/asm/
H A Dprocessor.h91 vector128 vscr __attribute__((aligned(16))); member
/openbmc/qemu/include/hw/ppc/
H A Dspapr_nested.h485 uint32_t vscr; member
/openbmc/qemu/hw/ppc/
H A Dspapr_nested.c213 save->vscr = ppc_get_vscr(env); in nested_save_state()
312 ppc_store_vscr(env, load->vscr); in nested_load_state()
1001 GUEST_STATE_ELEMENT_ENV_WW(GSB_VCPU_SPR_VSCR, vscr),
/openbmc/u-boot/arch/powerpc/include/asm/
H A Dprocessor.h1267 vector128 vscr; /* AltiVec status */ member
/openbmc/linux/arch/powerpc/kvm/
H A Dbook3s_pr.c1616 *val = get_reg_val(id, vcpu->arch.vr_tm.vscr.u[3]); in kvmppc_get_one_reg_pr()
1715 vcpu->arch.vr.vscr.u[3] = set_reg_val(id, *val); in kvmppc_set_one_reg_pr()
H A Dpowerpc.c1729 val = get_reg_val(reg->id, vcpu->arch.vr.vscr.u[3]); in kvm_vcpu_ioctl_get_one_reg()
1780 vcpu->arch.vr.vscr.u[3] = set_reg_val(reg->id, val); in kvm_vcpu_ioctl_set_one_reg()
H A Dbook3s_hv.c2405 *val = get_reg_val(id, vcpu->arch.vr_tm.vscr.u[3]); in kvmppc_get_one_reg_hv()
2677 vcpu->arch.vr.vscr.u[3] = set_reg_val(id, *val); in kvmppc_set_one_reg_hv()