Searched refs:CSR_HGATP (Results 1 – 5 of 5) sorted by relevance
/linux-6.12.1/arch/riscv/kvm/ |
D | vmid.c | 28 old = csr_read(CSR_HGATP); in kvm_riscv_gstage_vmid_detect() 29 csr_write(CSR_HGATP, old | HGATP_VMID); 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()
|
D | tlb.c | 90 hgatp = csr_swap(CSR_HGATP, vmid << HGATP_VMID_SHIFT); in kvm_riscv_local_hfence_vvma_asid_gva() 104 csr_write(CSR_HGATP, hgatp); in kvm_riscv_local_hfence_vvma_asid_gva() 112 hgatp = csr_swap(CSR_HGATP, vmid << HGATP_VMID_SHIFT); in kvm_riscv_local_hfence_vvma_asid_all() 116 csr_write(CSR_HGATP, hgatp); in kvm_riscv_local_hfence_vvma_asid_all() 130 hgatp = csr_swap(CSR_HGATP, vmid << HGATP_VMID_SHIFT); in kvm_riscv_local_hfence_vvma_gva() 144 csr_write(CSR_HGATP, hgatp); in kvm_riscv_local_hfence_vvma_gva() 151 hgatp = csr_swap(CSR_HGATP, vmid << HGATP_VMID_SHIFT); in kvm_riscv_local_hfence_vvma_all() 155 csr_write(CSR_HGATP, hgatp); in kvm_riscv_local_hfence_vvma_all()
|
D | mmu.c | 735 csr_write(CSR_HGATP, hgatp); in kvm_riscv_gstage_update_hgatp() 745 csr_write(CSR_HGATP, HGATP_MODE_SV57X4 << HGATP_MODE_SHIFT); in kvm_riscv_gstage_mode_detect() 746 if ((csr_read(CSR_HGATP) >> HGATP_MODE_SHIFT) == HGATP_MODE_SV57X4) { in kvm_riscv_gstage_mode_detect() 753 csr_write(CSR_HGATP, HGATP_MODE_SV48X4 << HGATP_MODE_SHIFT); in kvm_riscv_gstage_mode_detect() 754 if ((csr_read(CSR_HGATP) >> HGATP_MODE_SHIFT) == HGATP_MODE_SV48X4) { in kvm_riscv_gstage_mode_detect() 760 csr_write(CSR_HGATP, 0); in kvm_riscv_gstage_mode_detect()
|
/linux-6.12.1/tools/arch/riscv/include/asm/ |
D | csr.h | 339 #define CSR_HGATP 0x680 macro
|
/linux-6.12.1/arch/riscv/include/asm/ |
D | csr.h | 341 #define CSR_HGATP 0x680 macro
|