• Home
  • Raw
  • Download

Lines Matching refs:cop0

272 	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()
534 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_set_count_hz() local
550 count = kvm_read_c0_guest_count(cop0); in kvm_mips_set_count_hz()
581 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_write_compare() local
583 u32 old_compare = kvm_read_c0_guest_compare(cop0); in kvm_mips_write_compare()
592 kvm_write_c0_guest_compare(cop0, compare); in kvm_mips_write_compare()
604 kvm_write_c0_guest_compare(cop0, compare); in kvm_mips_write_compare()
625 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_count_disable() local
635 kvm_write_c0_guest_count(cop0, count); in kvm_mips_count_disable()
652 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_count_disable_cause() local
654 kvm_set_c0_guest_cause(cop0, CAUSEF_DC); in kvm_mips_count_disable_cause()
672 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_count_enable_cause() local
675 kvm_clear_c0_guest_cause(cop0, CAUSEF_DC); in kvm_mips_count_enable_cause()
682 count = kvm_read_c0_guest_count(cop0); in kvm_mips_count_enable_cause()
698 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_set_count_ctl() local
714 if (kvm_read_c0_guest_cause(cop0) & CAUSEF_DC) { in kvm_mips_set_count_ctl()
726 count = kvm_read_c0_guest_count(cop0); in kvm_mips_set_count_ctl()
727 compare = kvm_read_c0_guest_compare(cop0); in kvm_mips_set_count_ctl()
790 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_emul_eret() local
793 if (kvm_read_c0_guest_status(cop0) & ST0_ERL) { in kvm_mips_emul_eret()
794 kvm_clear_c0_guest_status(cop0, ST0_ERL); in kvm_mips_emul_eret()
795 vcpu->arch.pc = kvm_read_c0_guest_errorepc(cop0); in kvm_mips_emul_eret()
796 } else if (kvm_read_c0_guest_status(cop0) & ST0_EXL) { in kvm_mips_emul_eret()
798 kvm_read_c0_guest_epc(cop0)); in kvm_mips_emul_eret()
799 kvm_clear_c0_guest_status(cop0, ST0_EXL); in kvm_mips_emul_eret()
800 vcpu->arch.pc = kvm_read_c0_guest_epc(cop0); in kvm_mips_emul_eret()
841 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_emul_tlbr() local
844 kvm_err("[%#lx] COP0_TLBR [%ld]\n", pc, kvm_read_c0_guest_index(cop0)); in kvm_mips_emul_tlbr()
892 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_emul_tlbwi() local
893 int index = kvm_read_c0_guest_index(cop0); in kvm_mips_emul_tlbwi()
900 pc, index, kvm_read_c0_guest_entryhi(cop0), in kvm_mips_emul_tlbwi()
901 kvm_read_c0_guest_entrylo0(cop0), in kvm_mips_emul_tlbwi()
902 kvm_read_c0_guest_entrylo1(cop0), in kvm_mips_emul_tlbwi()
903 kvm_read_c0_guest_pagemask(cop0)); in kvm_mips_emul_tlbwi()
911 tlb->tlb_mask = kvm_read_c0_guest_pagemask(cop0); in kvm_mips_emul_tlbwi()
912 tlb->tlb_hi = kvm_read_c0_guest_entryhi(cop0); in kvm_mips_emul_tlbwi()
913 tlb->tlb_lo[0] = kvm_read_c0_guest_entrylo0(cop0); in kvm_mips_emul_tlbwi()
914 tlb->tlb_lo[1] = kvm_read_c0_guest_entrylo1(cop0); in kvm_mips_emul_tlbwi()
917 pc, index, kvm_read_c0_guest_entryhi(cop0), in kvm_mips_emul_tlbwi()
918 kvm_read_c0_guest_entrylo0(cop0), in kvm_mips_emul_tlbwi()
919 kvm_read_c0_guest_entrylo1(cop0), in kvm_mips_emul_tlbwi()
920 kvm_read_c0_guest_pagemask(cop0)); in kvm_mips_emul_tlbwi()
928 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_emul_tlbwr() local
940 tlb->tlb_mask = kvm_read_c0_guest_pagemask(cop0); in kvm_mips_emul_tlbwr()
941 tlb->tlb_hi = kvm_read_c0_guest_entryhi(cop0); in kvm_mips_emul_tlbwr()
942 tlb->tlb_lo[0] = kvm_read_c0_guest_entrylo0(cop0); in kvm_mips_emul_tlbwr()
943 tlb->tlb_lo[1] = kvm_read_c0_guest_entrylo1(cop0); in kvm_mips_emul_tlbwr()
946 pc, index, kvm_read_c0_guest_entryhi(cop0), in kvm_mips_emul_tlbwr()
947 kvm_read_c0_guest_entrylo0(cop0), in kvm_mips_emul_tlbwr()
948 kvm_read_c0_guest_entrylo1(cop0)); in kvm_mips_emul_tlbwr()
955 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_emul_tlbp() local
956 long entryhi = kvm_read_c0_guest_entryhi(cop0); in kvm_mips_emul_tlbp()
962 kvm_write_c0_guest_index(cop0, index); in kvm_mips_emul_tlbp()
1058 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_emulate_CP0() local
1105 cop0->stat[rd][sel]++; in kvm_mips_emulate_CP0()
1117 vcpu->arch.gprs[rt] = (s32)cop0->reg[rd][sel]; in kvm_mips_emulate_CP0()
1130 vcpu->arch.gprs[rt] = cop0->reg[rd][sel]; in kvm_mips_emulate_CP0()
1139 cop0->stat[rd][sel]++; in kvm_mips_emulate_CP0()
1156 kvm_change_c0_guest_ebase(cop0, in kvm_mips_emulate_CP0()
1160 kvm_read_c0_guest_ebase(cop0)); in kvm_mips_emulate_CP0()
1164 if (((kvm_read_c0_guest_entryhi(cop0) & in kvm_mips_emulate_CP0()
1167 kvm_read_c0_guest_entryhi(cop0) in kvm_mips_emulate_CP0()
1190 kvm_write_c0_guest_entryhi(cop0, in kvm_mips_emulate_CP0()
1206 old_val = kvm_read_c0_guest_status(cop0); in kvm_mips_emulate_CP0()
1265 kvm_write_c0_guest_status(cop0, val); in kvm_mips_emulate_CP0()
1278 old_val = kvm_read_c0_guest_config5(cop0); in kvm_mips_emulate_CP0()
1311 kvm_write_c0_guest_config5(cop0, val); in kvm_mips_emulate_CP0()
1315 old_cause = kvm_read_c0_guest_cause(cop0); in kvm_mips_emulate_CP0()
1318 kvm_change_c0_guest_cause(cop0, 0x08800300, in kvm_mips_emulate_CP0()
1333 if (kvm_read_c0_guest_config3(cop0) & in kvm_mips_emulate_CP0()
1336 cop0->reg[rd][sel] = vcpu->arch.gprs[rt] & mask; in kvm_mips_emulate_CP0()
1338 cop0->reg[rd][sel] = vcpu->arch.gprs[rt]; in kvm_mips_emulate_CP0()
1356 cop0->stat[MIPS_CP0_STATUS][0]++; in kvm_mips_emulate_CP0()
1360 kvm_read_c0_guest_status(cop0); in kvm_mips_emulate_CP0()
1365 kvm_set_c0_guest_status(cop0, ST0_IE); in kvm_mips_emulate_CP0()
1369 kvm_clear_c0_guest_status(cop0, ST0_IE); in kvm_mips_emulate_CP0()
1376 u32 css = cop0->reg[MIPS_CP0_STATUS][2] & 0xf; in kvm_mips_emulate_CP0()
1378 (cop0->reg[MIPS_CP0_STATUS][2] >> 6) & 0xf; in kvm_mips_emulate_CP0()
1647 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_emulate_cache() local
1728 (cop0) & KVM_ENTRYHI_ASID)); in kvm_mips_emulate_cache()
1882 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_emulate_syscall() local
1886 if ((kvm_read_c0_guest_status(cop0) & ST0_EXL) == 0) { in kvm_mips_emulate_syscall()
1888 kvm_write_c0_guest_epc(cop0, arch->pc); in kvm_mips_emulate_syscall()
1889 kvm_set_c0_guest_status(cop0, ST0_EXL); in kvm_mips_emulate_syscall()
1892 kvm_set_c0_guest_cause(cop0, CAUSEF_BD); in kvm_mips_emulate_syscall()
1894 kvm_clear_c0_guest_cause(cop0, CAUSEF_BD); in kvm_mips_emulate_syscall()
1898 kvm_change_c0_guest_cause(cop0, (0xff), in kvm_mips_emulate_syscall()
1917 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_emulate_tlbmiss_ld() local
1920 (kvm_read_c0_guest_entryhi(cop0) & KVM_ENTRYHI_ASID); in kvm_mips_emulate_tlbmiss_ld()
1922 if ((kvm_read_c0_guest_status(cop0) & ST0_EXL) == 0) { in kvm_mips_emulate_tlbmiss_ld()
1924 kvm_write_c0_guest_epc(cop0, arch->pc); in kvm_mips_emulate_tlbmiss_ld()
1925 kvm_set_c0_guest_status(cop0, ST0_EXL); in kvm_mips_emulate_tlbmiss_ld()
1928 kvm_set_c0_guest_cause(cop0, CAUSEF_BD); in kvm_mips_emulate_tlbmiss_ld()
1930 kvm_clear_c0_guest_cause(cop0, CAUSEF_BD); in kvm_mips_emulate_tlbmiss_ld()
1945 kvm_change_c0_guest_cause(cop0, (0xff), in kvm_mips_emulate_tlbmiss_ld()
1949 kvm_write_c0_guest_badvaddr(cop0, vcpu->arch.host_cp0_badvaddr); in kvm_mips_emulate_tlbmiss_ld()
1951 kvm_write_c0_guest_entryhi(cop0, entryhi); in kvm_mips_emulate_tlbmiss_ld()
1963 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_emulate_tlbinv_ld() local
1967 (kvm_read_c0_guest_entryhi(cop0) & KVM_ENTRYHI_ASID); in kvm_mips_emulate_tlbinv_ld()
1969 if ((kvm_read_c0_guest_status(cop0) & ST0_EXL) == 0) { in kvm_mips_emulate_tlbinv_ld()
1971 kvm_write_c0_guest_epc(cop0, arch->pc); in kvm_mips_emulate_tlbinv_ld()
1972 kvm_set_c0_guest_status(cop0, ST0_EXL); in kvm_mips_emulate_tlbinv_ld()
1975 kvm_set_c0_guest_cause(cop0, CAUSEF_BD); in kvm_mips_emulate_tlbinv_ld()
1977 kvm_clear_c0_guest_cause(cop0, CAUSEF_BD); in kvm_mips_emulate_tlbinv_ld()
1991 kvm_change_c0_guest_cause(cop0, (0xff), in kvm_mips_emulate_tlbinv_ld()
1995 kvm_write_c0_guest_badvaddr(cop0, vcpu->arch.host_cp0_badvaddr); in kvm_mips_emulate_tlbinv_ld()
1997 kvm_write_c0_guest_entryhi(cop0, entryhi); in kvm_mips_emulate_tlbinv_ld()
2009 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_emulate_tlbmiss_st() local
2012 (kvm_read_c0_guest_entryhi(cop0) & KVM_ENTRYHI_ASID); in kvm_mips_emulate_tlbmiss_st()
2014 if ((kvm_read_c0_guest_status(cop0) & ST0_EXL) == 0) { in kvm_mips_emulate_tlbmiss_st()
2016 kvm_write_c0_guest_epc(cop0, arch->pc); in kvm_mips_emulate_tlbmiss_st()
2017 kvm_set_c0_guest_status(cop0, ST0_EXL); in kvm_mips_emulate_tlbmiss_st()
2020 kvm_set_c0_guest_cause(cop0, CAUSEF_BD); in kvm_mips_emulate_tlbmiss_st()
2022 kvm_clear_c0_guest_cause(cop0, CAUSEF_BD); in kvm_mips_emulate_tlbmiss_st()
2035 kvm_change_c0_guest_cause(cop0, (0xff), in kvm_mips_emulate_tlbmiss_st()
2039 kvm_write_c0_guest_badvaddr(cop0, vcpu->arch.host_cp0_badvaddr); in kvm_mips_emulate_tlbmiss_st()
2041 kvm_write_c0_guest_entryhi(cop0, entryhi); in kvm_mips_emulate_tlbmiss_st()
2053 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_emulate_tlbinv_st() local
2056 (kvm_read_c0_guest_entryhi(cop0) & KVM_ENTRYHI_ASID); in kvm_mips_emulate_tlbinv_st()
2058 if ((kvm_read_c0_guest_status(cop0) & ST0_EXL) == 0) { in kvm_mips_emulate_tlbinv_st()
2060 kvm_write_c0_guest_epc(cop0, arch->pc); in kvm_mips_emulate_tlbinv_st()
2061 kvm_set_c0_guest_status(cop0, ST0_EXL); in kvm_mips_emulate_tlbinv_st()
2064 kvm_set_c0_guest_cause(cop0, CAUSEF_BD); in kvm_mips_emulate_tlbinv_st()
2066 kvm_clear_c0_guest_cause(cop0, CAUSEF_BD); in kvm_mips_emulate_tlbinv_st()
2079 kvm_change_c0_guest_cause(cop0, (0xff), in kvm_mips_emulate_tlbinv_st()
2083 kvm_write_c0_guest_badvaddr(cop0, vcpu->arch.host_cp0_badvaddr); in kvm_mips_emulate_tlbinv_st()
2085 kvm_write_c0_guest_entryhi(cop0, entryhi); in kvm_mips_emulate_tlbinv_st()
2099 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_handle_tlbmod() local
2101 (kvm_read_c0_guest_entryhi(cop0) & KVM_ENTRYHI_ASID); in kvm_mips_handle_tlbmod()
2126 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_emulate_tlbmod() local
2128 (kvm_read_c0_guest_entryhi(cop0) & KVM_ENTRYHI_ASID); in kvm_mips_emulate_tlbmod()
2131 if ((kvm_read_c0_guest_status(cop0) & ST0_EXL) == 0) { in kvm_mips_emulate_tlbmod()
2133 kvm_write_c0_guest_epc(cop0, arch->pc); in kvm_mips_emulate_tlbmod()
2134 kvm_set_c0_guest_status(cop0, ST0_EXL); in kvm_mips_emulate_tlbmod()
2137 kvm_set_c0_guest_cause(cop0, CAUSEF_BD); in kvm_mips_emulate_tlbmod()
2139 kvm_clear_c0_guest_cause(cop0, CAUSEF_BD); in kvm_mips_emulate_tlbmod()
2151 kvm_change_c0_guest_cause(cop0, (0xff), in kvm_mips_emulate_tlbmod()
2155 kvm_write_c0_guest_badvaddr(cop0, vcpu->arch.host_cp0_badvaddr); in kvm_mips_emulate_tlbmod()
2157 kvm_write_c0_guest_entryhi(cop0, entryhi); in kvm_mips_emulate_tlbmod()
2169 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_emulate_fpu_exc() local
2172 if ((kvm_read_c0_guest_status(cop0) & ST0_EXL) == 0) { in kvm_mips_emulate_fpu_exc()
2174 kvm_write_c0_guest_epc(cop0, arch->pc); in kvm_mips_emulate_fpu_exc()
2175 kvm_set_c0_guest_status(cop0, ST0_EXL); in kvm_mips_emulate_fpu_exc()
2178 kvm_set_c0_guest_cause(cop0, CAUSEF_BD); in kvm_mips_emulate_fpu_exc()
2180 kvm_clear_c0_guest_cause(cop0, CAUSEF_BD); in kvm_mips_emulate_fpu_exc()
2186 kvm_change_c0_guest_cause(cop0, (0xff), in kvm_mips_emulate_fpu_exc()
2188 kvm_change_c0_guest_cause(cop0, (CAUSEF_CE), (0x1 << CAUSEB_CE)); in kvm_mips_emulate_fpu_exc()
2198 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_emulate_ri_exc() local
2202 if ((kvm_read_c0_guest_status(cop0) & ST0_EXL) == 0) { in kvm_mips_emulate_ri_exc()
2204 kvm_write_c0_guest_epc(cop0, arch->pc); in kvm_mips_emulate_ri_exc()
2205 kvm_set_c0_guest_status(cop0, ST0_EXL); in kvm_mips_emulate_ri_exc()
2208 kvm_set_c0_guest_cause(cop0, CAUSEF_BD); in kvm_mips_emulate_ri_exc()
2210 kvm_clear_c0_guest_cause(cop0, CAUSEF_BD); in kvm_mips_emulate_ri_exc()
2214 kvm_change_c0_guest_cause(cop0, (0xff), in kvm_mips_emulate_ri_exc()
2233 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_emulate_bp_exc() local
2237 if ((kvm_read_c0_guest_status(cop0) & ST0_EXL) == 0) { in kvm_mips_emulate_bp_exc()
2239 kvm_write_c0_guest_epc(cop0, arch->pc); in kvm_mips_emulate_bp_exc()
2240 kvm_set_c0_guest_status(cop0, ST0_EXL); in kvm_mips_emulate_bp_exc()
2243 kvm_set_c0_guest_cause(cop0, CAUSEF_BD); in kvm_mips_emulate_bp_exc()
2245 kvm_clear_c0_guest_cause(cop0, CAUSEF_BD); in kvm_mips_emulate_bp_exc()
2249 kvm_change_c0_guest_cause(cop0, (0xff), in kvm_mips_emulate_bp_exc()
2268 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_emulate_trap_exc() local
2272 if ((kvm_read_c0_guest_status(cop0) & ST0_EXL) == 0) { in kvm_mips_emulate_trap_exc()
2274 kvm_write_c0_guest_epc(cop0, arch->pc); in kvm_mips_emulate_trap_exc()
2275 kvm_set_c0_guest_status(cop0, ST0_EXL); in kvm_mips_emulate_trap_exc()
2278 kvm_set_c0_guest_cause(cop0, CAUSEF_BD); in kvm_mips_emulate_trap_exc()
2280 kvm_clear_c0_guest_cause(cop0, CAUSEF_BD); in kvm_mips_emulate_trap_exc()
2284 kvm_change_c0_guest_cause(cop0, (0xff), in kvm_mips_emulate_trap_exc()
2303 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_emulate_msafpe_exc() local
2307 if ((kvm_read_c0_guest_status(cop0) & ST0_EXL) == 0) { in kvm_mips_emulate_msafpe_exc()
2309 kvm_write_c0_guest_epc(cop0, arch->pc); in kvm_mips_emulate_msafpe_exc()
2310 kvm_set_c0_guest_status(cop0, ST0_EXL); in kvm_mips_emulate_msafpe_exc()
2313 kvm_set_c0_guest_cause(cop0, CAUSEF_BD); in kvm_mips_emulate_msafpe_exc()
2315 kvm_clear_c0_guest_cause(cop0, CAUSEF_BD); in kvm_mips_emulate_msafpe_exc()
2319 kvm_change_c0_guest_cause(cop0, (0xff), in kvm_mips_emulate_msafpe_exc()
2338 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_emulate_fpe_exc() local
2342 if ((kvm_read_c0_guest_status(cop0) & ST0_EXL) == 0) { in kvm_mips_emulate_fpe_exc()
2344 kvm_write_c0_guest_epc(cop0, arch->pc); in kvm_mips_emulate_fpe_exc()
2345 kvm_set_c0_guest_status(cop0, ST0_EXL); in kvm_mips_emulate_fpe_exc()
2348 kvm_set_c0_guest_cause(cop0, CAUSEF_BD); in kvm_mips_emulate_fpe_exc()
2350 kvm_clear_c0_guest_cause(cop0, CAUSEF_BD); in kvm_mips_emulate_fpe_exc()
2354 kvm_change_c0_guest_cause(cop0, (0xff), in kvm_mips_emulate_fpe_exc()
2373 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_emulate_msadis_exc() local
2377 if ((kvm_read_c0_guest_status(cop0) & ST0_EXL) == 0) { in kvm_mips_emulate_msadis_exc()
2379 kvm_write_c0_guest_epc(cop0, arch->pc); in kvm_mips_emulate_msadis_exc()
2380 kvm_set_c0_guest_status(cop0, ST0_EXL); in kvm_mips_emulate_msadis_exc()
2383 kvm_set_c0_guest_cause(cop0, CAUSEF_BD); in kvm_mips_emulate_msadis_exc()
2385 kvm_clear_c0_guest_cause(cop0, CAUSEF_BD); in kvm_mips_emulate_msadis_exc()
2389 kvm_change_c0_guest_cause(cop0, (0xff), in kvm_mips_emulate_msadis_exc()
2407 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_handle_ri() local
2443 if (usermode && !(kvm_read_c0_guest_hwrena(cop0) & BIT(rd))) { in kvm_mips_handle_ri()
2470 arch->gprs[rt] = kvm_read_c0_guest_userlocal(cop0); in kvm_mips_handle_ri()
2542 struct mips_coproc *cop0 = vcpu->arch.cop0; in kvm_mips_emulate_exc() local
2546 if ((kvm_read_c0_guest_status(cop0) & ST0_EXL) == 0) { in kvm_mips_emulate_exc()
2548 kvm_write_c0_guest_epc(cop0, arch->pc); in kvm_mips_emulate_exc()
2549 kvm_set_c0_guest_status(cop0, ST0_EXL); in kvm_mips_emulate_exc()
2552 kvm_set_c0_guest_cause(cop0, CAUSEF_BD); in kvm_mips_emulate_exc()
2554 kvm_clear_c0_guest_cause(cop0, CAUSEF_BD); in kvm_mips_emulate_exc()
2556 kvm_change_c0_guest_cause(cop0, (0xff), in kvm_mips_emulate_exc()
2561 kvm_write_c0_guest_badvaddr(cop0, vcpu->arch.host_cp0_badvaddr); in kvm_mips_emulate_exc()
2564 exccode, kvm_read_c0_guest_epc(cop0), in kvm_mips_emulate_exc()
2565 kvm_read_c0_guest_badvaddr(cop0)); in kvm_mips_emulate_exc()
2691 (kvm_read_c0_guest_entryhi(vcpu->arch.cop0) & in kvm_mips_handle_tlbmiss()