Home
last modified time | relevance | path

Searched refs:cop0 (Results 1 – 6 of 6) sorted by relevance

/linux-6.1.9/arch/mips/kvm/
Dvz.c425 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_vz_restore_timer() local
428 compare = kvm_read_sw_gc0_compare(cop0); in kvm_vz_restore_timer()
429 cause = kvm_read_sw_gc0_cause(cop0); in kvm_vz_restore_timer()
520 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_vz_save_timer() local
536 kvm_write_sw_gc0_cause(cop0, cause); in kvm_vz_save_timer()
537 kvm_write_sw_gc0_compare(cop0, compare); in kvm_vz_save_timer()
866 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_write_maari() local
870 kvm_write_sw_gc0_maari(cop0, ARRAY_SIZE(vcpu->arch.maar) - 1); in kvm_write_maari()
872 kvm_write_sw_gc0_maari(cop0, val); in kvm_write_maari()
879 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_vz_gpsi_cop0() local
[all …]
Demulate.c315 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_count_disabled() local
318 (kvm_read_c0_guest_cause(cop0) & CAUSEF_DC); in kvm_mips_count_disabled()
387 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_read_count_running() local
394 compare = kvm_read_c0_guest_compare(cop0); in kvm_mips_read_count_running()
447 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_read_count() local
451 return kvm_read_c0_guest_count(cop0); in kvm_mips_read_count()
505 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_resume_hrtimer() local
511 compare = kvm_read_c0_guest_compare(cop0); in kvm_mips_resume_hrtimer()
606 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_write_count() local
615 kvm_write_c0_guest_count(cop0, count); in kvm_mips_write_count()
[all …]
Dmips.c662 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_get_reg() local
692 if (kvm_read_c0_guest_status(cop0) & ST0_FR) in kvm_mips_get_reg()
702 if (idx & 1 && !(kvm_read_c0_guest_status(cop0) & ST0_FR)) in kvm_mips_get_reg()
722 if (!(kvm_read_c0_guest_status(cop0) & ST0_FR)) in kvm_mips_get_reg()
774 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_set_reg() local
826 if (kvm_read_c0_guest_status(cop0) & ST0_FR) in kvm_mips_set_reg()
836 if (idx & 1 && !(kvm_read_c0_guest_status(cop0) & ST0_FR)) in kvm_mips_set_reg()
1114 kvm_read_c0_guest_cause(vcpu->arch.cop0) & C_TI; in kvm_cpu_has_pending_timer()
1120 struct mips_coproc *cop0; in kvm_arch_vcpu_dump_regs() local
1138 cop0 = vcpu->arch.cop0; in kvm_arch_vcpu_dump_regs()
[all …]
Dstats.c57 if (vcpu->arch.cop0->stat[i][j]) in kvm_mips_dump_stats()
59 vcpu->arch.cop0->stat[i][j]); in kvm_mips_dump_stats()
Dtrace.h325 __entry->epc = kvm_read_c0_guest_epc(vcpu->arch.cop0);
327 __entry->badvaddr = kvm_read_c0_guest_badvaddr(vcpu->arch.cop0);
328 __entry->status = kvm_read_c0_guest_status(vcpu->arch.cop0);
329 __entry->cause = kvm_read_c0_guest_cause(vcpu->arch.cop0);
/linux-6.1.9/arch/mips/include/asm/
Dkvm_host.h320 struct mips_coproc *cop0; member
437 static inline __KVMT##type kvm_read_sw_gc0_##name(struct mips_coproc *cop0) \
439 return cop0->reg[(_reg)][(sel)]; \
441 static inline void kvm_write_sw_gc0_##name(struct mips_coproc *cop0, \
444 cop0->reg[(_reg)][(sel)] = val; \
449 static inline void kvm_set_sw_gc0_##name(struct mips_coproc *cop0, \
452 cop0->reg[(_reg)][(sel)] |= val; \
454 static inline void kvm_clear_sw_gc0_##name(struct mips_coproc *cop0, \
457 cop0->reg[(_reg)][(sel)] &= ~val; \
459 static inline void kvm_change_sw_gc0_##name(struct mips_coproc *cop0, \
[all …]