Home
last modified time | relevance | path

Searched refs:CSR_HGATP (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/arch/riscv/kvm/
Dvmid.c28 old = csr_read(CSR_HGATP); in kvm_riscv_gstage_vmid_detect()
29 csr_write(CSR_HGATP, old | HGATP_VMID_MASK); in kvm_riscv_gstage_vmid_detect()
30 vmid_bits = csr_read(CSR_HGATP); in kvm_riscv_gstage_vmid_detect()
33 csr_write(CSR_HGATP, old); in kvm_riscv_gstage_vmid_detect()
Dtlb.c91 hgatp = csr_swap(CSR_HGATP, vmid << HGATP_VMID_SHIFT); in kvm_riscv_local_hfence_vvma_asid_gva()
105 csr_write(CSR_HGATP, hgatp); in kvm_riscv_local_hfence_vvma_asid_gva()
113 hgatp = csr_swap(CSR_HGATP, vmid << HGATP_VMID_SHIFT); in kvm_riscv_local_hfence_vvma_asid_all()
117 csr_write(CSR_HGATP, hgatp); in kvm_riscv_local_hfence_vvma_asid_all()
131 hgatp = csr_swap(CSR_HGATP, vmid << HGATP_VMID_SHIFT); in kvm_riscv_local_hfence_vvma_gva()
145 csr_write(CSR_HGATP, hgatp); in kvm_riscv_local_hfence_vvma_gva()
152 hgatp = csr_swap(CSR_HGATP, vmid << HGATP_VMID_SHIFT); in kvm_riscv_local_hfence_vvma_all()
156 csr_write(CSR_HGATP, hgatp); in kvm_riscv_local_hfence_vvma_all()
Dmmu.c757 csr_write(CSR_HGATP, hgatp); in kvm_riscv_gstage_update_hgatp()
767 csr_write(CSR_HGATP, HGATP_MODE_SV57X4 << HGATP_MODE_SHIFT); in kvm_riscv_gstage_mode_detect()
768 if ((csr_read(CSR_HGATP) >> HGATP_MODE_SHIFT) == HGATP_MODE_SV57X4) { in kvm_riscv_gstage_mode_detect()
775 csr_write(CSR_HGATP, HGATP_MODE_SV48X4 << HGATP_MODE_SHIFT); in kvm_riscv_gstage_mode_detect()
776 if ((csr_read(CSR_HGATP) >> HGATP_MODE_SHIFT) == HGATP_MODE_SV48X4) { in kvm_riscv_gstage_mode_detect()
782 csr_write(CSR_HGATP, 0); in kvm_riscv_gstage_mode_detect()
/linux-6.1.9/arch/riscv/include/asm/
Dcsr.h279 #define CSR_HGATP 0x680 macro