Lines Matching refs:arch
25 u32 instr = vcpu->arch.emul_inst; in kvmhv_p9_tm_emulation_early()
32 newmsr = vcpu->arch.shregs.srr1; in kvmhv_p9_tm_emulation_early()
37 vcpu->arch.shregs.msr = newmsr; in kvmhv_p9_tm_emulation_early()
38 vcpu->arch.cfar = vcpu->arch.regs.nip - 4; in kvmhv_p9_tm_emulation_early()
39 vcpu->arch.regs.nip = vcpu->arch.shregs.srr0; in kvmhv_p9_tm_emulation_early()
44 msr = vcpu->arch.shregs.msr; in kvmhv_p9_tm_emulation_early()
45 if ((msr & MSR_PR) && (vcpu->arch.vcore->pcr & PCR_ARCH_206)) in kvmhv_p9_tm_emulation_early()
48 if (!(vcpu->arch.hfscr & HFSCR_EBB) || in kvmhv_p9_tm_emulation_early()
60 vcpu->arch.shregs.msr = msr; in kvmhv_p9_tm_emulation_early()
61 vcpu->arch.cfar = vcpu->arch.regs.nip - 4; in kvmhv_p9_tm_emulation_early()
62 vcpu->arch.regs.nip = mfspr(SPRN_EBBRR); in kvmhv_p9_tm_emulation_early()
69 msr = vcpu->arch.shregs.msr; in kvmhv_p9_tm_emulation_early()
76 vcpu->arch.shregs.msr = newmsr; in kvmhv_p9_tm_emulation_early()
81 msr = vcpu->arch.shregs.msr; in kvmhv_p9_tm_emulation_early()
83 if ((msr & MSR_PR) && (vcpu->arch.vcore->pcr & PCR_ARCH_206)) in kvmhv_p9_tm_emulation_early()
86 if (!(vcpu->arch.hfscr & HFSCR_TM) || !(msr & MSR_TM)) in kvmhv_p9_tm_emulation_early()
90 vcpu->arch.shregs.msr = (msr & ~MSR_TS_MASK) | MSR_TS_T; in kvmhv_p9_tm_emulation_early()
92 vcpu->arch.cr = (vcpu->arch.cr & 0x0fffffff) | 0x20000000; in kvmhv_p9_tm_emulation_early()
105 vcpu->arch.shregs.msr &= ~MSR_TS_MASK; /* go to N state */ in kvmhv_emulate_tm_rollback()
106 vcpu->arch.regs.nip = vcpu->arch.tfhar; in kvmhv_emulate_tm_rollback()
108 vcpu->arch.cr = (vcpu->arch.cr & 0x0fffffff) | 0xa0000000; in kvmhv_emulate_tm_rollback()