Searched refs:csr_read (Results 1 – 16 of 16) sorted by relevance
13 context->scratch = csr_read(CSR_SCRATCH); in suspend_save_csrs()14 context->tvec = csr_read(CSR_TVEC); in suspend_save_csrs()15 context->ie = csr_read(CSR_IE); in suspend_save_csrs()28 context->satp = csr_read(CSR_SATP); in suspend_save_csrs()
31 cpu_mfr_info->vendor_id = csr_read(CSR_MVENDORID); in riscv_fill_cpu_mfr_info()32 cpu_mfr_info->arch_id = csr_read(CSR_MARCHID); in riscv_fill_cpu_mfr_info()33 cpu_mfr_info->imp_id = csr_read(CSR_MIMPID); in riscv_fill_cpu_mfr_info()
99 unsigned long tmp = csr_read(CSR_STATUS); in compat_mode_detect()103 (csr_read(CSR_STATUS) & SR_UXL) == SR_UXL_32; in compat_mode_detect()
245 unsigned long addr = csr_read(mtval); in handle_misaligned_load()328 unsigned long addr = csr_read(mtval); in handle_misaligned_store()
627 csr->vsie = csr_read(CSR_VSIE); in kvm_riscv_vcpu_sync_interrupts()630 hvip = csr_read(CSR_HVIP); in kvm_riscv_vcpu_sync_interrupts()767 csr->vsstatus = csr_read(CSR_VSSTATUS); in kvm_arch_vcpu_put()768 csr->vsie = csr_read(CSR_VSIE); in kvm_arch_vcpu_put()769 csr->vstvec = csr_read(CSR_VSTVEC); in kvm_arch_vcpu_put()770 csr->vsscratch = csr_read(CSR_VSSCRATCH); in kvm_arch_vcpu_put()771 csr->vsepc = csr_read(CSR_VSEPC); in kvm_arch_vcpu_put()772 csr->vscause = csr_read(CSR_VSCAUSE); in kvm_arch_vcpu_put()773 csr->vstval = csr_read(CSR_VSTVAL); in kvm_arch_vcpu_put()774 csr->hvip = csr_read(CSR_HVIP); in kvm_arch_vcpu_put()[all …]
28 old = csr_read(CSR_HGATP); in kvm_riscv_gstage_vmid_detect()30 vmid_bits = csr_read(CSR_HGATP); in kvm_riscv_gstage_vmid_detect()
577 unsigned long vsstatus = csr_read(CSR_VSSTATUS); in kvm_riscv_vcpu_trap_redirect()601 vcpu->arch.guest_context.sepc = csr_read(CSR_VSTVEC); in kvm_riscv_vcpu_trap_redirect()
759 if ((csr_read(CSR_HGATP) >> HGATP_MODE_SHIFT) == HGATP_MODE_SV57X4) { in kvm_riscv_gstage_mode_detect()767 if ((csr_read(CSR_HGATP) >> HGATP_MODE_SHIFT) == HGATP_MODE_SV48X4) { in kvm_riscv_gstage_mode_detect()
53 return csr_read(CSR_TIME); in get_cycles()59 return csr_read(CSR_TIMEH); in get_cycles_hi()
16 return csr_read(CSR_STATUS); in arch_local_save_flags()
334 #define csr_read(csr) \ macro
221 old = csr_read(CSR_SATP); in asids_init()224 asid_bits = (csr_read(CSR_SATP) >> SATP_ASID_SHIFT) & SATP_ASID_MASK; in asids_init()
125 pfn = csr_read(CSR_SATP) & SATP_PPN; in vmalloc_fault()
71 return csr_read(CSR_TIME); in __arch_get_hw_counter()
24 __val = csr_read(__csr_num); \ in csr_read_num()
580 overflow = csr_read(CSR_SSCOUNTOVF); in pmu_sbi_ovf_handler()