Lines Matching refs:vcpu

150 static inline void kvmppc_sync_qpr(struct kvm_vcpu *vcpu, int rt)  in kvmppc_sync_qpr()  argument
152 kvm_cvt_df(&VCPU_FPR(vcpu, rt), &vcpu->arch.qpr[rt]); in kvmppc_sync_qpr()
155 static void kvmppc_inject_pf(struct kvm_vcpu *vcpu, ulong eaddr, bool is_store) in kvmppc_inject_pf() argument
158 u64 msr = kvmppc_get_msr(vcpu); in kvmppc_inject_pf()
162 kvmppc_set_msr(vcpu, msr); in kvmppc_inject_pf()
163 kvmppc_set_dar(vcpu, eaddr); in kvmppc_inject_pf()
168 kvmppc_set_dsisr(vcpu, dsisr); in kvmppc_inject_pf()
169 kvmppc_book3s_queue_irqprio(vcpu, BOOK3S_INTERRUPT_DATA_STORAGE); in kvmppc_inject_pf()
172 static int kvmppc_emulate_fpr_load(struct kvm_vcpu *vcpu, in kvmppc_emulate_fpr_load() argument
184 r = kvmppc_ld(vcpu, &addr, len, tmp, true); in kvmppc_emulate_fpr_load()
185 vcpu->arch.paddr_accessed = addr; in kvmppc_emulate_fpr_load()
188 kvmppc_inject_pf(vcpu, addr, false); in kvmppc_emulate_fpr_load()
191 emulated = kvmppc_handle_load(vcpu, KVM_MMIO_REG_FPR | rs, in kvmppc_emulate_fpr_load()
201 kvm_cvt_fd((u32*)tmp, &VCPU_FPR(vcpu, rs)); in kvmppc_emulate_fpr_load()
202 vcpu->arch.qpr[rs] = *((u32*)tmp); in kvmppc_emulate_fpr_load()
205 VCPU_FPR(vcpu, rs) = *((u64*)tmp); in kvmppc_emulate_fpr_load()
216 static int kvmppc_emulate_fpr_store(struct kvm_vcpu *vcpu, in kvmppc_emulate_fpr_store() argument
227 kvm_cvt_df(&VCPU_FPR(vcpu, rs), (u32*)tmp); in kvmppc_emulate_fpr_store()
232 *((u32*)tmp) = VCPU_FPR(vcpu, rs); in kvmppc_emulate_fpr_store()
233 val = VCPU_FPR(vcpu, rs) & 0xffffffff; in kvmppc_emulate_fpr_store()
237 *((u64*)tmp) = VCPU_FPR(vcpu, rs); in kvmppc_emulate_fpr_store()
238 val = VCPU_FPR(vcpu, rs); in kvmppc_emulate_fpr_store()
246 r = kvmppc_st(vcpu, &addr, len, tmp, true); in kvmppc_emulate_fpr_store()
247 vcpu->arch.paddr_accessed = addr; in kvmppc_emulate_fpr_store()
249 kvmppc_inject_pf(vcpu, addr, true); in kvmppc_emulate_fpr_store()
251 emulated = kvmppc_handle_store(vcpu, val, len, 1); in kvmppc_emulate_fpr_store()
262 static int kvmppc_emulate_psq_load(struct kvm_vcpu *vcpu, in kvmppc_emulate_psq_load() argument
272 r = kvmppc_ld(vcpu, &addr, sizeof(u32), tmp, true); in kvmppc_emulate_psq_load()
275 r = kvmppc_ld(vcpu, &addr, sizeof(u32) * 2, tmp, true); in kvmppc_emulate_psq_load()
277 vcpu->arch.paddr_accessed = addr; in kvmppc_emulate_psq_load()
279 kvmppc_inject_pf(vcpu, addr, false); in kvmppc_emulate_psq_load()
282 emulated = kvmppc_handle_load(vcpu, KVM_MMIO_REG_FPR | rs, in kvmppc_emulate_psq_load()
284 vcpu->arch.qpr[rs] = tmp[1]; in kvmppc_emulate_psq_load()
287 emulated = kvmppc_handle_load(vcpu, KVM_MMIO_REG_FQPR | rs, in kvmppc_emulate_psq_load()
295 kvm_cvt_fd(&tmp[0], &VCPU_FPR(vcpu, rs)); in kvmppc_emulate_psq_load()
296 vcpu->arch.qpr[rs] = tmp[1]; in kvmppc_emulate_psq_load()
305 static int kvmppc_emulate_psq_store(struct kvm_vcpu *vcpu, in kvmppc_emulate_psq_store() argument
313 kvm_cvt_df(&VCPU_FPR(vcpu, rs), &tmp[0]); in kvmppc_emulate_psq_store()
314 tmp[1] = vcpu->arch.qpr[rs]; in kvmppc_emulate_psq_store()
316 r = kvmppc_st(vcpu, &addr, len, tmp, true); in kvmppc_emulate_psq_store()
317 vcpu->arch.paddr_accessed = addr; in kvmppc_emulate_psq_store()
319 kvmppc_inject_pf(vcpu, addr, true); in kvmppc_emulate_psq_store()
321 emulated = kvmppc_handle_store(vcpu, tmp[0], 4, 1); in kvmppc_emulate_psq_store()
324 emulated = kvmppc_handle_store(vcpu, val, 8, 1); in kvmppc_emulate_psq_store()
344 static bool kvmppc_inst_is_paired_single(struct kvm_vcpu *vcpu, u32 inst) in kvmppc_inst_is_paired_single() argument
346 if (!(vcpu->arch.hflags & BOOK3S_HFLAG_PAIRED_SINGLE)) in kvmppc_inst_is_paired_single()
490 static int kvmppc_ps_three_in(struct kvm_vcpu *vcpu, bool rc, in kvmppc_ps_three_in() argument
497 u32 *qpr = vcpu->arch.qpr; in kvmppc_ps_three_in()
506 kvm_cvt_df(&VCPU_FPR(vcpu, reg_in1), &ps0_in1); in kvmppc_ps_three_in()
507 kvm_cvt_df(&VCPU_FPR(vcpu, reg_in2), &ps0_in2); in kvmppc_ps_three_in()
508 kvm_cvt_df(&VCPU_FPR(vcpu, reg_in3), &ps0_in3); in kvmppc_ps_three_in()
513 func(&vcpu->arch.fp.fpscr, &ps0_out, &ps0_in1, &ps0_in2, &ps0_in3); in kvmppc_ps_three_in()
519 kvm_cvt_fd(&ps0_out, &VCPU_FPR(vcpu, reg_out)); in kvmppc_ps_three_in()
530 func(&vcpu->arch.fp.fpscr, &qpr[reg_out], &ps1_in1, &ps1_in2, &ps1_in3); in kvmppc_ps_three_in()
538 static int kvmppc_ps_two_in(struct kvm_vcpu *vcpu, bool rc, in kvmppc_ps_two_in() argument
545 u32 *qpr = vcpu->arch.qpr; in kvmppc_ps_two_in()
555 kvm_cvt_df(&VCPU_FPR(vcpu, reg_in1), &ps0_in1); in kvmppc_ps_two_in()
560 kvm_cvt_df(&VCPU_FPR(vcpu, reg_in2), &ps0_in2); in kvmppc_ps_two_in()
562 func(&vcpu->arch.fp.fpscr, &ps0_out, &ps0_in1, &ps0_in2); in kvmppc_ps_two_in()
568 kvm_cvt_fd(&ps0_out, &VCPU_FPR(vcpu, reg_out)); in kvmppc_ps_two_in()
578 func(&vcpu->arch.fp.fpscr, &ps1_out, &ps1_in1, &ps1_in2); in kvmppc_ps_two_in()
590 static int kvmppc_ps_one_in(struct kvm_vcpu *vcpu, bool rc, in kvmppc_ps_one_in() argument
595 u32 *qpr = vcpu->arch.qpr; in kvmppc_ps_one_in()
603 kvm_cvt_df(&VCPU_FPR(vcpu, reg_in), &ps0_in); in kvmppc_ps_one_in()
604 func(&vcpu->arch.fp.fpscr, &ps0_out, &ps0_in); in kvmppc_ps_one_in()
609 kvm_cvt_fd(&ps0_out, &VCPU_FPR(vcpu, reg_out)); in kvmppc_ps_one_in()
613 func(&vcpu->arch.fp.fpscr, &qpr[reg_out], &ps1_in); in kvmppc_ps_one_in()
621 int kvmppc_emulate_paired_single(struct kvm_vcpu *vcpu) in kvmppc_emulate_paired_single() argument
636 emulated = kvmppc_get_last_inst(vcpu, INST_GENERIC, &pinst); in kvmppc_emulate_paired_single()
647 fpr_d = &VCPU_FPR(vcpu, ax_rd); in kvmppc_emulate_paired_single()
648 fpr_a = &VCPU_FPR(vcpu, ax_ra); in kvmppc_emulate_paired_single()
649 fpr_b = &VCPU_FPR(vcpu, ax_rb); in kvmppc_emulate_paired_single()
650 fpr_c = &VCPU_FPR(vcpu, ax_rc); in kvmppc_emulate_paired_single()
653 cr = kvmppc_get_cr(vcpu); in kvmppc_emulate_paired_single()
655 if (!kvmppc_inst_is_paired_single(vcpu, inst)) in kvmppc_emulate_paired_single()
658 if (!(kvmppc_get_msr(vcpu) & MSR_FP)) { in kvmppc_emulate_paired_single()
659 kvmppc_book3s_queue_irqprio(vcpu, BOOK3S_INTERRUPT_FP_UNAVAIL); in kvmppc_emulate_paired_single()
663 kvmppc_giveup_ext(vcpu, MSR_FP); in kvmppc_emulate_paired_single()
669 for (i = 0; i < ARRAY_SIZE(vcpu->arch.fp.fpr); i++) { in kvmppc_emulate_paired_single()
671 kvm_cvt_df(&VCPU_FPR(vcpu, i), &f); in kvmppc_emulate_paired_single()
673 i, f, VCPU_FPR(vcpu, i), i, vcpu->arch.qpr[i]); in kvmppc_emulate_paired_single()
680 ulong addr = ax_ra ? kvmppc_get_gpr(vcpu, ax_ra) : 0; in kvmppc_emulate_paired_single()
685 emulated = kvmppc_emulate_psq_load(vcpu, ax_rd, addr, w, i); in kvmppc_emulate_paired_single()
690 ulong addr = kvmppc_get_gpr(vcpu, ax_ra); in kvmppc_emulate_paired_single()
695 emulated = kvmppc_emulate_psq_load(vcpu, ax_rd, addr, w, i); in kvmppc_emulate_paired_single()
698 kvmppc_set_gpr(vcpu, ax_ra, addr); in kvmppc_emulate_paired_single()
703 ulong addr = ax_ra ? kvmppc_get_gpr(vcpu, ax_ra) : 0; in kvmppc_emulate_paired_single()
708 emulated = kvmppc_emulate_psq_store(vcpu, ax_rd, addr, w, i); in kvmppc_emulate_paired_single()
713 ulong addr = kvmppc_get_gpr(vcpu, ax_ra); in kvmppc_emulate_paired_single()
718 emulated = kvmppc_emulate_psq_store(vcpu, ax_rd, addr, w, i); in kvmppc_emulate_paired_single()
721 kvmppc_set_gpr(vcpu, ax_ra, addr); in kvmppc_emulate_paired_single()
733 ulong addr = ax_ra ? kvmppc_get_gpr(vcpu, ax_ra) : 0; in kvmppc_emulate_paired_single()
737 addr += kvmppc_get_gpr(vcpu, ax_rb); in kvmppc_emulate_paired_single()
738 emulated = kvmppc_emulate_psq_load(vcpu, ax_rd, addr, w, i); in kvmppc_emulate_paired_single()
747 ulong addr = kvmppc_get_gpr(vcpu, ax_ra); in kvmppc_emulate_paired_single()
751 addr += kvmppc_get_gpr(vcpu, ax_rb); in kvmppc_emulate_paired_single()
752 emulated = kvmppc_emulate_psq_load(vcpu, ax_rd, addr, w, i); in kvmppc_emulate_paired_single()
755 kvmppc_set_gpr(vcpu, ax_ra, addr); in kvmppc_emulate_paired_single()
759 VCPU_FPR(vcpu, ax_rd) = VCPU_FPR(vcpu, ax_rb); in kvmppc_emulate_paired_single()
760 VCPU_FPR(vcpu, ax_rd) ^= 0x8000000000000000ULL; in kvmppc_emulate_paired_single()
761 vcpu->arch.qpr[ax_rd] = vcpu->arch.qpr[ax_rb]; in kvmppc_emulate_paired_single()
762 vcpu->arch.qpr[ax_rd] ^= 0x80000000; in kvmppc_emulate_paired_single()
770 VCPU_FPR(vcpu, ax_rd) = VCPU_FPR(vcpu, ax_rb); in kvmppc_emulate_paired_single()
771 vcpu->arch.qpr[ax_rd] = vcpu->arch.qpr[ax_rb]; in kvmppc_emulate_paired_single()
779 VCPU_FPR(vcpu, ax_rd) = VCPU_FPR(vcpu, ax_rb); in kvmppc_emulate_paired_single()
780 VCPU_FPR(vcpu, ax_rd) |= 0x8000000000000000ULL; in kvmppc_emulate_paired_single()
781 vcpu->arch.qpr[ax_rd] = vcpu->arch.qpr[ax_rb]; in kvmppc_emulate_paired_single()
782 vcpu->arch.qpr[ax_rd] |= 0x80000000; in kvmppc_emulate_paired_single()
786 VCPU_FPR(vcpu, ax_rd) = VCPU_FPR(vcpu, ax_rb); in kvmppc_emulate_paired_single()
787 VCPU_FPR(vcpu, ax_rd) &= ~0x8000000000000000ULL; in kvmppc_emulate_paired_single()
788 vcpu->arch.qpr[ax_rd] = vcpu->arch.qpr[ax_rb]; in kvmppc_emulate_paired_single()
789 vcpu->arch.qpr[ax_rd] &= ~0x80000000; in kvmppc_emulate_paired_single()
793 VCPU_FPR(vcpu, ax_rd) = VCPU_FPR(vcpu, ax_ra); in kvmppc_emulate_paired_single()
795 kvm_cvt_df(&VCPU_FPR(vcpu, ax_rb), in kvmppc_emulate_paired_single()
796 &vcpu->arch.qpr[ax_rd]); in kvmppc_emulate_paired_single()
800 VCPU_FPR(vcpu, ax_rd) = VCPU_FPR(vcpu, ax_ra); in kvmppc_emulate_paired_single()
801 vcpu->arch.qpr[ax_rd] = vcpu->arch.qpr[ax_rb]; in kvmppc_emulate_paired_single()
806 kvm_cvt_fd(&vcpu->arch.qpr[ax_ra], in kvmppc_emulate_paired_single()
807 &VCPU_FPR(vcpu, ax_rd)); in kvmppc_emulate_paired_single()
809 kvm_cvt_df(&VCPU_FPR(vcpu, ax_rb), in kvmppc_emulate_paired_single()
810 &vcpu->arch.qpr[ax_rd]); in kvmppc_emulate_paired_single()
815 kvm_cvt_fd(&vcpu->arch.qpr[ax_ra], in kvmppc_emulate_paired_single()
816 &VCPU_FPR(vcpu, ax_rd)); in kvmppc_emulate_paired_single()
817 vcpu->arch.qpr[ax_rd] = vcpu->arch.qpr[ax_rb]; in kvmppc_emulate_paired_single()
824 ulong addr = ax_ra ? kvmppc_get_gpr(vcpu, ax_ra) : 0; in kvmppc_emulate_paired_single()
828 addr += kvmppc_get_gpr(vcpu, ax_rb); in kvmppc_emulate_paired_single()
829 emulated = kvmppc_emulate_psq_store(vcpu, ax_rd, addr, w, i); in kvmppc_emulate_paired_single()
834 ulong addr = kvmppc_get_gpr(vcpu, ax_ra); in kvmppc_emulate_paired_single()
838 addr += kvmppc_get_gpr(vcpu, ax_rb); in kvmppc_emulate_paired_single()
839 emulated = kvmppc_emulate_psq_store(vcpu, ax_rd, addr, w, i); in kvmppc_emulate_paired_single()
842 kvmppc_set_gpr(vcpu, ax_ra, addr); in kvmppc_emulate_paired_single()
849 emulated = kvmppc_ps_two_in(vcpu, rcomp, ax_rd, in kvmppc_emulate_paired_single()
851 VCPU_FPR(vcpu, ax_rd) = VCPU_FPR(vcpu, ax_rc); in kvmppc_emulate_paired_single()
854 emulated = kvmppc_ps_two_in(vcpu, rcomp, ax_rd, in kvmppc_emulate_paired_single()
856 vcpu->arch.qpr[ax_rd] = vcpu->arch.qpr[ax_rc]; in kvmppc_emulate_paired_single()
859 emulated = kvmppc_ps_two_in(vcpu, rcomp, ax_rd, in kvmppc_emulate_paired_single()
863 emulated = kvmppc_ps_two_in(vcpu, rcomp, ax_rd, in kvmppc_emulate_paired_single()
867 emulated = kvmppc_ps_three_in(vcpu, rcomp, ax_rd, in kvmppc_emulate_paired_single()
871 emulated = kvmppc_ps_three_in(vcpu, rcomp, ax_rd, in kvmppc_emulate_paired_single()
875 emulated = kvmppc_ps_two_in(vcpu, rcomp, ax_rd, in kvmppc_emulate_paired_single()
879 emulated = kvmppc_ps_two_in(vcpu, rcomp, ax_rd, in kvmppc_emulate_paired_single()
883 emulated = kvmppc_ps_two_in(vcpu, rcomp, ax_rd, in kvmppc_emulate_paired_single()
887 emulated = kvmppc_ps_three_in(vcpu, rcomp, ax_rd, in kvmppc_emulate_paired_single()
891 emulated = kvmppc_ps_one_in(vcpu, rcomp, ax_rd, in kvmppc_emulate_paired_single()
895 emulated = kvmppc_ps_two_in(vcpu, rcomp, ax_rd, in kvmppc_emulate_paired_single()
899 emulated = kvmppc_ps_one_in(vcpu, rcomp, ax_rd, in kvmppc_emulate_paired_single()
903 emulated = kvmppc_ps_three_in(vcpu, rcomp, ax_rd, in kvmppc_emulate_paired_single()
907 emulated = kvmppc_ps_three_in(vcpu, rcomp, ax_rd, in kvmppc_emulate_paired_single()
911 emulated = kvmppc_ps_three_in(vcpu, rcomp, ax_rd, in kvmppc_emulate_paired_single()
915 emulated = kvmppc_ps_three_in(vcpu, rcomp, ax_rd, in kvmppc_emulate_paired_single()
925 ulong addr = (ax_ra ? kvmppc_get_gpr(vcpu, ax_ra) : 0) + full_d; in kvmppc_emulate_paired_single()
927 emulated = kvmppc_emulate_fpr_load(vcpu, ax_rd, addr, in kvmppc_emulate_paired_single()
933 ulong addr = kvmppc_get_gpr(vcpu, ax_ra) + full_d; in kvmppc_emulate_paired_single()
935 emulated = kvmppc_emulate_fpr_load(vcpu, ax_rd, addr, in kvmppc_emulate_paired_single()
939 kvmppc_set_gpr(vcpu, ax_ra, addr); in kvmppc_emulate_paired_single()
944 ulong addr = (ax_ra ? kvmppc_get_gpr(vcpu, ax_ra) : 0) + full_d; in kvmppc_emulate_paired_single()
946 emulated = kvmppc_emulate_fpr_load(vcpu, ax_rd, addr, in kvmppc_emulate_paired_single()
952 ulong addr = kvmppc_get_gpr(vcpu, ax_ra) + full_d; in kvmppc_emulate_paired_single()
954 emulated = kvmppc_emulate_fpr_load(vcpu, ax_rd, addr, in kvmppc_emulate_paired_single()
958 kvmppc_set_gpr(vcpu, ax_ra, addr); in kvmppc_emulate_paired_single()
963 ulong addr = (ax_ra ? kvmppc_get_gpr(vcpu, ax_ra) : 0) + full_d; in kvmppc_emulate_paired_single()
965 emulated = kvmppc_emulate_fpr_store(vcpu, ax_rd, addr, in kvmppc_emulate_paired_single()
971 ulong addr = kvmppc_get_gpr(vcpu, ax_ra) + full_d; in kvmppc_emulate_paired_single()
973 emulated = kvmppc_emulate_fpr_store(vcpu, ax_rd, addr, in kvmppc_emulate_paired_single()
977 kvmppc_set_gpr(vcpu, ax_ra, addr); in kvmppc_emulate_paired_single()
982 ulong addr = (ax_ra ? kvmppc_get_gpr(vcpu, ax_ra) : 0) + full_d; in kvmppc_emulate_paired_single()
984 emulated = kvmppc_emulate_fpr_store(vcpu, ax_rd, addr, in kvmppc_emulate_paired_single()
990 ulong addr = kvmppc_get_gpr(vcpu, ax_ra) + full_d; in kvmppc_emulate_paired_single()
992 emulated = kvmppc_emulate_fpr_store(vcpu, ax_rd, addr, in kvmppc_emulate_paired_single()
996 kvmppc_set_gpr(vcpu, ax_ra, addr); in kvmppc_emulate_paired_single()
1003 ulong addr = ax_ra ? kvmppc_get_gpr(vcpu, ax_ra) : 0; in kvmppc_emulate_paired_single()
1005 addr += kvmppc_get_gpr(vcpu, ax_rb); in kvmppc_emulate_paired_single()
1006 emulated = kvmppc_emulate_fpr_load(vcpu, ax_rd, in kvmppc_emulate_paired_single()
1012 ulong addr = kvmppc_get_gpr(vcpu, ax_ra) + in kvmppc_emulate_paired_single()
1013 kvmppc_get_gpr(vcpu, ax_rb); in kvmppc_emulate_paired_single()
1015 emulated = kvmppc_emulate_fpr_load(vcpu, ax_rd, in kvmppc_emulate_paired_single()
1019 kvmppc_set_gpr(vcpu, ax_ra, addr); in kvmppc_emulate_paired_single()
1024 ulong addr = (ax_ra ? kvmppc_get_gpr(vcpu, ax_ra) : 0) + in kvmppc_emulate_paired_single()
1025 kvmppc_get_gpr(vcpu, ax_rb); in kvmppc_emulate_paired_single()
1027 emulated = kvmppc_emulate_fpr_load(vcpu, ax_rd, in kvmppc_emulate_paired_single()
1033 ulong addr = kvmppc_get_gpr(vcpu, ax_ra) + in kvmppc_emulate_paired_single()
1034 kvmppc_get_gpr(vcpu, ax_rb); in kvmppc_emulate_paired_single()
1036 emulated = kvmppc_emulate_fpr_load(vcpu, ax_rd, in kvmppc_emulate_paired_single()
1040 kvmppc_set_gpr(vcpu, ax_ra, addr); in kvmppc_emulate_paired_single()
1045 ulong addr = (ax_ra ? kvmppc_get_gpr(vcpu, ax_ra) : 0) + in kvmppc_emulate_paired_single()
1046 kvmppc_get_gpr(vcpu, ax_rb); in kvmppc_emulate_paired_single()
1048 emulated = kvmppc_emulate_fpr_store(vcpu, ax_rd, in kvmppc_emulate_paired_single()
1054 ulong addr = kvmppc_get_gpr(vcpu, ax_ra) + in kvmppc_emulate_paired_single()
1055 kvmppc_get_gpr(vcpu, ax_rb); in kvmppc_emulate_paired_single()
1057 emulated = kvmppc_emulate_fpr_store(vcpu, ax_rd, in kvmppc_emulate_paired_single()
1061 kvmppc_set_gpr(vcpu, ax_ra, addr); in kvmppc_emulate_paired_single()
1066 ulong addr = (ax_ra ? kvmppc_get_gpr(vcpu, ax_ra) : 0) + in kvmppc_emulate_paired_single()
1067 kvmppc_get_gpr(vcpu, ax_rb); in kvmppc_emulate_paired_single()
1069 emulated = kvmppc_emulate_fpr_store(vcpu, ax_rd, in kvmppc_emulate_paired_single()
1075 ulong addr = kvmppc_get_gpr(vcpu, ax_ra) + in kvmppc_emulate_paired_single()
1076 kvmppc_get_gpr(vcpu, ax_rb); in kvmppc_emulate_paired_single()
1078 emulated = kvmppc_emulate_fpr_store(vcpu, ax_rd, in kvmppc_emulate_paired_single()
1082 kvmppc_set_gpr(vcpu, ax_ra, addr); in kvmppc_emulate_paired_single()
1087 ulong addr = (ax_ra ? kvmppc_get_gpr(vcpu, ax_ra) : 0) + in kvmppc_emulate_paired_single()
1088 kvmppc_get_gpr(vcpu, ax_rb); in kvmppc_emulate_paired_single()
1090 emulated = kvmppc_emulate_fpr_store(vcpu, ax_rd, in kvmppc_emulate_paired_single()
1101 fpd_fadds(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_a, fpr_b); in kvmppc_emulate_paired_single()
1102 kvmppc_sync_qpr(vcpu, ax_rd); in kvmppc_emulate_paired_single()
1105 fpd_fsubs(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_a, fpr_b); in kvmppc_emulate_paired_single()
1106 kvmppc_sync_qpr(vcpu, ax_rd); in kvmppc_emulate_paired_single()
1109 fpd_fdivs(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_a, fpr_b); in kvmppc_emulate_paired_single()
1110 kvmppc_sync_qpr(vcpu, ax_rd); in kvmppc_emulate_paired_single()
1113 fpd_fres(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_b); in kvmppc_emulate_paired_single()
1114 kvmppc_sync_qpr(vcpu, ax_rd); in kvmppc_emulate_paired_single()
1117 fpd_frsqrtes(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_b); in kvmppc_emulate_paired_single()
1118 kvmppc_sync_qpr(vcpu, ax_rd); in kvmppc_emulate_paired_single()
1123 fpd_fmuls(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_a, fpr_c); in kvmppc_emulate_paired_single()
1124 kvmppc_sync_qpr(vcpu, ax_rd); in kvmppc_emulate_paired_single()
1127 fpd_fmsubs(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_a, fpr_c, fpr_b); in kvmppc_emulate_paired_single()
1128 kvmppc_sync_qpr(vcpu, ax_rd); in kvmppc_emulate_paired_single()
1131 fpd_fmadds(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_a, fpr_c, fpr_b); in kvmppc_emulate_paired_single()
1132 kvmppc_sync_qpr(vcpu, ax_rd); in kvmppc_emulate_paired_single()
1135 fpd_fnmsubs(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_a, fpr_c, fpr_b); in kvmppc_emulate_paired_single()
1136 kvmppc_sync_qpr(vcpu, ax_rd); in kvmppc_emulate_paired_single()
1139 fpd_fnmadds(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_a, fpr_c, fpr_b); in kvmppc_emulate_paired_single()
1140 kvmppc_sync_qpr(vcpu, ax_rd); in kvmppc_emulate_paired_single()
1154 *fpr_d = vcpu->arch.fp.fpscr; in kvmppc_emulate_paired_single()
1159 vcpu->arch.fp.fpscr = *fpr_b; in kvmppc_emulate_paired_single()
1167 fpd_fcmpu(&vcpu->arch.fp.fpscr, &tmp_cr, fpr_a, fpr_b); in kvmppc_emulate_paired_single()
1178 fpd_fcmpo(&vcpu->arch.fp.fpscr, &tmp_cr, fpr_a, fpr_b); in kvmppc_emulate_paired_single()
1184 fpd_fneg(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_b); in kvmppc_emulate_paired_single()
1190 fpd_fabs(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_b); in kvmppc_emulate_paired_single()
1193 fpd_fcpsgn(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_a, fpr_b); in kvmppc_emulate_paired_single()
1196 fpd_fdiv(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_a, fpr_b); in kvmppc_emulate_paired_single()
1199 fpd_fadd(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_a, fpr_b); in kvmppc_emulate_paired_single()
1202 fpd_fsub(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_a, fpr_b); in kvmppc_emulate_paired_single()
1205 fpd_fctiw(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_b); in kvmppc_emulate_paired_single()
1208 fpd_fctiwz(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_b); in kvmppc_emulate_paired_single()
1211 fpd_frsp(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_b); in kvmppc_emulate_paired_single()
1212 kvmppc_sync_qpr(vcpu, ax_rd); in kvmppc_emulate_paired_single()
1219 fpd_fsqrt(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_b); in kvmppc_emulate_paired_single()
1221 fpd_fdiv(&vcpu->arch.fp.fpscr, &cr, fpr_d, (u64*)&one, fpr_d); in kvmppc_emulate_paired_single()
1227 fpd_fmul(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_a, fpr_c); in kvmppc_emulate_paired_single()
1230 fpd_fsel(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_a, fpr_c, fpr_b); in kvmppc_emulate_paired_single()
1233 fpd_fmsub(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_a, fpr_c, fpr_b); in kvmppc_emulate_paired_single()
1236 fpd_fmadd(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_a, fpr_c, fpr_b); in kvmppc_emulate_paired_single()
1239 fpd_fnmsub(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_a, fpr_c, fpr_b); in kvmppc_emulate_paired_single()
1242 fpd_fnmadd(&vcpu->arch.fp.fpscr, &cr, fpr_d, fpr_a, fpr_c, fpr_b); in kvmppc_emulate_paired_single()
1249 for (i = 0; i < ARRAY_SIZE(vcpu->arch.fp.fpr); i++) { in kvmppc_emulate_paired_single()
1251 kvm_cvt_df(&VCPU_FPR(vcpu, i), &f); in kvmppc_emulate_paired_single()
1257 kvmppc_set_cr(vcpu, cr); in kvmppc_emulate_paired_single()