Searched refs:csr_read (Results 1 – 23 of 23) sorted by relevance
91 csr->vsieh = csr_read(CSR_VSIEH); in kvm_riscv_vcpu_aia_sync_interrupts()118 return !!(csr_read(CSR_HGEIP) & BIT(hgei)); in kvm_riscv_vcpu_aia_has_interrupts()161 csr->vsiselect = csr_read(CSR_VSISELECT); in kvm_riscv_vcpu_aia_put()162 csr->hviprio1 = csr_read(CSR_HVIPRIO1); in kvm_riscv_vcpu_aia_put()163 csr->hviprio2 = csr_read(CSR_HVIPRIO2); in kvm_riscv_vcpu_aia_put()165 csr->vsieh = csr_read(CSR_VSIEH); in kvm_riscv_vcpu_aia_put()166 csr->hviph = csr_read(CSR_HVIPH); in kvm_riscv_vcpu_aia_put()167 csr->hviprio1h = csr_read(CSR_HVIPRIO1H); in kvm_riscv_vcpu_aia_put()168 csr->hviprio2h = csr_read(CSR_HVIPRIO2H); in kvm_riscv_vcpu_aia_put()253 hviprio = csr_read(CSR_HVIPRIO1); in aia_get_iprio8()[all …]
344 csr->vsie = csr_read(CSR_VSIE); in kvm_riscv_vcpu_sync_interrupts()347 hvip = csr_read(CSR_HVIP); in kvm_riscv_vcpu_sync_interrupts()545 csr->vsstatus = csr_read(CSR_VSSTATUS); in kvm_arch_vcpu_put()546 csr->vsie = csr_read(CSR_VSIE); in kvm_arch_vcpu_put()547 csr->vstvec = csr_read(CSR_VSTVEC); in kvm_arch_vcpu_put()548 csr->vsscratch = csr_read(CSR_VSSCRATCH); in kvm_arch_vcpu_put()549 csr->vsepc = csr_read(CSR_VSEPC); in kvm_arch_vcpu_put()550 csr->vscause = csr_read(CSR_VSCAUSE); in kvm_arch_vcpu_put()551 csr->vstval = csr_read(CSR_VSTVAL); in kvm_arch_vcpu_put()552 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()
65 __r = csr_read(CSR_VSIREG); \379 old_vsiselect = csr_read(CSR_VSISELECT); in imsic_vsfile_local_read()380 old_hstatus = csr_read(CSR_HSTATUS); in imsic_vsfile_local_read()451 old_vsiselect = csr_read(CSR_VSISELECT); in imsic_vsfile_local_rw()452 old_hstatus = csr_read(CSR_HSTATUS); in imsic_vsfile_local_rw()528 old_vsiselect = csr_read(CSR_VSISELECT); in imsic_vsfile_local_clear()529 old_hstatus = csr_read(CSR_HSTATUS); in imsic_vsfile_local_clear()566 old_vsiselect = csr_read(CSR_VSISELECT); in imsic_vsfile_local_update()567 old_hstatus = csr_read(CSR_HSTATUS); in imsic_vsfile_local_update()
138 unsigned long vsstatus = csr_read(CSR_VSSTATUS); in kvm_riscv_vcpu_trap_redirect()162 vcpu->arch.guest_context.sepc = csr_read(CSR_VSTVEC); in kvm_riscv_vcpu_trap_redirect()
330 t->next_cycles = csr_read(CSR_VSTIMECMP); in kvm_riscv_vcpu_timer_sync()331 t->next_cycles |= (u64)csr_read(CSR_VSTIMECMPH) << 32; in kvm_riscv_vcpu_timer_sync()333 t->next_cycles = csr_read(CSR_VSTIMECMP); in kvm_riscv_vcpu_timer_sync()
766 if ((csr_read(CSR_HGATP) >> HGATP_MODE_SHIFT) == HGATP_MODE_SV57X4) { in kvm_riscv_gstage_mode_detect()774 if ((csr_read(CSR_HGATP) >> HGATP_MODE_SHIFT) == HGATP_MODE_SV48X4) { in kvm_riscv_gstage_mode_detect()
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()
35 cpu_mfr_info->vendor_id = csr_read(CSR_MVENDORID); in riscv_fill_cpu_mfr_info()36 cpu_mfr_info->arch_id = csr_read(CSR_MARCHID); in riscv_fill_cpu_mfr_info()37 cpu_mfr_info->imp_id = csr_read(CSR_MIMPID); in riscv_fill_cpu_mfr_info()
177 ci->mvendorid = csr_read(CSR_MVENDORID); in riscv_cpuinfo_starting()178 ci->marchid = csr_read(CSR_MARCHID); in riscv_cpuinfo_starting()179 ci->mimpid = csr_read(CSR_MIMPID); in riscv_cpuinfo_starting()
98 unsigned long tmp = csr_read(CSR_STATUS); in compat_mode_detect()102 (csr_read(CSR_STATUS) & SR_UXL) == SR_UXL_32; in compat_mode_detect()
243 unsigned long addr = csr_read(mtval); in handle_misaligned_load()326 unsigned long addr = csr_read(mtval); in handle_misaligned_store()
34 this_vsize = csr_read(CSR_VLENB) * 32; in riscv_v_setup_vsize()
102 hdr->saved_satp = csr_read(CSR_SATP); in arch_hibernation_header_save()
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()
465 #define csr_read(csr) \ macro
233 old = csr_read(CSR_SATP); in asids_init()236 asid_bits = (csr_read(CSR_SATP) >> SATP_ASID_SHIFT) & SATP_ASID_MASK; in asids_init()
135 pfn = csr_read(CSR_SATP) & SATP_PPN; in vmalloc_fault()
79 return csr_read(CSR_TIME); in __arch_get_hw_counter()
403 #define csr_read(csr) \ macro416 __val = csr_read(__csr_num); \ in csr_read_num()
97 __val = csr_read(__csr_num); \ in csr_read_num()
515 csr_read(CSR_SCOUNTEREN) | (1 << pmu_sbi_csr_index(event))); in pmu_sbi_set_scounteren()524 csr_read(CSR_SCOUNTEREN) & ~(1 << pmu_sbi_csr_index(event))); in pmu_sbi_reset_scounteren()