Home
last modified time | relevance | path

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

/arch/mips/include/asm/
Dkvm_host.h86 #define KVM_GUEST_KERNEL_MODE(vcpu) ((kvm_read_c0_guest_status(vcpu->arch.cop0) & (ST0_EXL | ST0_ER…
87 ((kvm_read_c0_guest_status(vcpu->arch.cop0) & KSU_USER) == 0))
291 struct mips_coproc *cop0; member
346 #define kvm_read_c0_guest_index(cop0) (cop0->reg[MIPS_CP0_TLB_INDEX][0]) argument
347 #define kvm_write_c0_guest_index(cop0, val) (cop0->reg[MIPS_CP0_TLB_INDEX][0] = val) argument
348 #define kvm_read_c0_guest_entrylo0(cop0) (cop0->reg[MIPS_CP0_TLB_LO0][0]) argument
349 #define kvm_read_c0_guest_entrylo1(cop0) (cop0->reg[MIPS_CP0_TLB_LO1][0]) argument
350 #define kvm_read_c0_guest_context(cop0) (cop0->reg[MIPS_CP0_TLB_CONTEXT][0]) argument
351 #define kvm_write_c0_guest_context(cop0, val) (cop0->reg[MIPS_CP0_TLB_CONTEXT][0] = (val)) argument
352 #define kvm_read_c0_guest_userlocal(cop0) (cop0->reg[MIPS_CP0_TLB_CONTEXT][2]) argument
[all …]
/arch/mips/kvm/
Dinterrupt.c41 kvm_set_c0_guest_cause(vcpu->arch.cop0, (C_IRQ5 | C_TI)); in kvm_mips_queue_timer_int_cb()
50 kvm_clear_c0_guest_cause(vcpu->arch.cop0, (C_IRQ5 | C_TI)); in kvm_mips_dequeue_timer_int_cb()
66 kvm_set_c0_guest_cause(vcpu->arch.cop0, (C_IRQ0)); in kvm_mips_queue_io_int_cb()
72 kvm_set_c0_guest_cause(vcpu->arch.cop0, (C_IRQ1)); in kvm_mips_queue_io_int_cb()
77 kvm_set_c0_guest_cause(vcpu->arch.cop0, (C_IRQ2)); in kvm_mips_queue_io_int_cb()
94 kvm_clear_c0_guest_cause(vcpu->arch.cop0, (C_IRQ0)); in kvm_mips_dequeue_io_int_cb()
99 kvm_clear_c0_guest_cause(vcpu->arch.cop0, (C_IRQ1)); in kvm_mips_dequeue_io_int_cb()
104 kvm_clear_c0_guest_cause(vcpu->arch.cop0, (C_IRQ2)); in kvm_mips_dequeue_io_int_cb()
122 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_irq_deliver_cb() local
126 if ((kvm_read_c0_guest_status(cop0) & ST0_IE) in kvm_mips_irq_deliver_cb()
[all …]
Demulate.c272 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_count_disabled() local
275 (kvm_read_c0_guest_cause(cop0) & CAUSEF_DC); in kvm_mips_count_disabled()
344 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_read_count_running() local
351 compare = kvm_read_c0_guest_compare(cop0); in kvm_mips_read_count_running()
404 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_read_count() local
408 return kvm_read_c0_guest_count(cop0); in kvm_mips_read_count()
462 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_resume_hrtimer() local
468 compare = kvm_read_c0_guest_compare(cop0); in kvm_mips_resume_hrtimer()
487 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_write_count() local
496 kvm_write_c0_guest_count(cop0, count); in kvm_mips_write_count()
[all …]
Dmips.c428 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_check_asids() local
439 gasid = kvm_read_c0_guest_entryhi(cop0) & KVM_ENTRYHI_ASID; in kvm_mips_check_asids()
472 kvm_read_c0_guest_cause(vcpu->arch.cop0)); in kvm_arch_vcpu_ioctl_run()
713 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_get_reg() local
743 if (kvm_read_c0_guest_status(cop0) & ST0_FR) in kvm_mips_get_reg()
753 if (idx & 1 && !(kvm_read_c0_guest_status(cop0) & ST0_FR)) in kvm_mips_get_reg()
773 if (!(kvm_read_c0_guest_status(cop0) & ST0_FR)) in kvm_mips_get_reg()
799 v = (long)kvm_read_c0_guest_index(cop0); in kvm_mips_get_reg()
802 v = (long)kvm_read_c0_guest_context(cop0); in kvm_mips_get_reg()
805 v = (long)kvm_read_c0_guest_userlocal(cop0); in kvm_mips_get_reg()
[all …]
Dtrap_emul.c40 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_trap_emul_handle_cop_unusable() local
50 (kvm_read_c0_guest_status(cop0) & ST0_CU1) == 0) { in kvm_trap_emul_handle_cop_unusable()
392 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_trap_emul_handle_msa_disabled() local
400 (kvm_read_c0_guest_status(cop0) & (ST0_CU1 | ST0_FR)) == ST0_CU1) { in kvm_trap_emul_handle_msa_disabled()
406 } else if (!(kvm_read_c0_guest_config5(cop0) & MIPS_CONF5_MSAEN)) { in kvm_trap_emul_handle_msa_disabled()
445 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_trap_emul_vcpu_setup() local
455 kvm_write_c0_guest_prid(cop0, 0x00019300); in kvm_trap_emul_vcpu_setup()
458 kvm_write_c0_guest_prid(cop0, 0x00010000); in kvm_trap_emul_vcpu_setup()
472 kvm_write_c0_guest_config(cop0, config); in kvm_trap_emul_vcpu_setup()
484 kvm_write_c0_guest_config1(cop0, config1); in kvm_trap_emul_vcpu_setup()
[all …]
Dcommpage.c31 vcpu->arch.cop0 = &page->cop0; in kvm_mips_commpage_init()
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()
Ddyntrans.c104 offsetof(struct kvm_mips_commpage, cop0.reg[rd][sel]); in kvm_mips_trans_mfc0()
106 if (sizeof(vcpu->arch.cop0->reg[0][0]) == 8) in kvm_mips_trans_mfc0()
126 offsetof(struct kvm_mips_commpage, cop0.reg[rd][sel]); in kvm_mips_trans_mtc0()
128 if (sizeof(vcpu->arch.cop0->reg[0][0]) == 8) in kvm_mips_trans_mtc0()
Dcommpage.h17 struct mips_coproc cop0; member
Dtlb.c79 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_dump_guest_tlbs() local
84 kvm_info("Guest EntryHi: %#lx\n", kvm_read_c0_guest_entryhi(cop0)); in kvm_mips_dump_guest_tlbs()
Dmmu.c353 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_get_inst() local
368 asid = kvm_read_c0_guest_entryhi(cop0) & in kvm_get_inst()
Dentry.c283 UASM_i_LW(&p, T0, offsetof(struct kvm_vcpu_arch, cop0), K1); in kvm_mips_build_enter_guest()