Lines Matching refs:cntx
359 struct kvm_cpu_context *cntx = &vcpu->arch.guest_context; in kvm_riscv_vcpu_get_reg_core() local
373 reg_val = cntx->sepc; in kvm_riscv_vcpu_get_reg_core()
376 reg_val = ((unsigned long *)cntx)[reg_num]; in kvm_riscv_vcpu_get_reg_core()
378 reg_val = (cntx->sstatus & SR_SPP) ? in kvm_riscv_vcpu_get_reg_core()
392 struct kvm_cpu_context *cntx = &vcpu->arch.guest_context; in kvm_riscv_vcpu_set_reg_core() local
409 cntx->sepc = reg_val; in kvm_riscv_vcpu_set_reg_core()
412 ((unsigned long *)cntx)[reg_num] = reg_val; in kvm_riscv_vcpu_set_reg_core()
415 cntx->sstatus |= SR_SPP; in kvm_riscv_vcpu_set_reg_core()
417 cntx->sstatus &= ~SR_SPP; in kvm_riscv_vcpu_set_reg_core()
913 const struct kvm_cpu_context *cntx = &vcpu->arch.guest_context; in num_fp_f_regs() local
916 return sizeof(cntx->fp.f) / sizeof(u32); in num_fp_f_regs()
942 const struct kvm_cpu_context *cntx = &vcpu->arch.guest_context; in num_fp_d_regs() local
945 return sizeof(cntx->fp.d.f) / sizeof(u64) + 1; in num_fp_d_regs()
1086 const struct kvm_cpu_context *cntx = &vcpu->arch.guest_context; in copy_vector_reg_indices() local
1107 size = __builtin_ctzl(cntx->vector.vlenb); in copy_vector_reg_indices()