Lines Matching refs:arch
20 u64 msr = vcpu->arch.shregs.msr; in emulate_tx_failure()
22 tfiar = vcpu->arch.regs.nip & ~0x3ull; in emulate_tx_failure()
24 if (MSR_TM_SUSPENDED(vcpu->arch.shregs.msr)) in emulate_tx_failure()
30 vcpu->arch.tfiar = tfiar; in emulate_tx_failure()
32 vcpu->arch.texasr = (vcpu->arch.texasr & 0x3ffffff) | texasr; in emulate_tx_failure()
45 u32 instr = vcpu->arch.emul_inst; in kvmhv_p9_tm_emulation()
46 u64 msr = vcpu->arch.shregs.msr; in kvmhv_p9_tm_emulation()
53 newmsr = vcpu->arch.shregs.srr1; in kvmhv_p9_tm_emulation()
59 vcpu->arch.shregs.msr = newmsr; in kvmhv_p9_tm_emulation()
60 vcpu->arch.cfar = vcpu->arch.regs.nip - 4; in kvmhv_p9_tm_emulation()
61 vcpu->arch.regs.nip = vcpu->arch.shregs.srr0; in kvmhv_p9_tm_emulation()
65 if ((msr & MSR_PR) && (vcpu->arch.vcore->pcr & PCR_ARCH_206)) { in kvmhv_p9_tm_emulation()
71 if (!(vcpu->arch.hfscr & HFSCR_EBB)) { in kvmhv_p9_tm_emulation()
76 if ((msr & MSR_PR) && !(vcpu->arch.fscr & FSCR_EBB)) { in kvmhv_p9_tm_emulation()
78 vcpu->arch.fscr = (vcpu->arch.fscr & ~(0xffull << 56)) | in kvmhv_p9_tm_emulation()
83 bescr = vcpu->arch.bescr; in kvmhv_p9_tm_emulation()
90 vcpu->arch.bescr = bescr; in kvmhv_p9_tm_emulation()
92 vcpu->arch.shregs.msr = msr; in kvmhv_p9_tm_emulation()
93 vcpu->arch.cfar = vcpu->arch.regs.nip - 4; in kvmhv_p9_tm_emulation()
94 vcpu->arch.regs.nip = vcpu->arch.ebbrr; in kvmhv_p9_tm_emulation()
108 vcpu->arch.shregs.msr = newmsr; in kvmhv_p9_tm_emulation()
113 if ((msr & MSR_PR) && (vcpu->arch.vcore->pcr & PCR_ARCH_206)) { in kvmhv_p9_tm_emulation()
119 if (!(vcpu->arch.hfscr & HFSCR_TM)) { in kvmhv_p9_tm_emulation()
126 vcpu->arch.fscr = (vcpu->arch.fscr & ~(0xffull << 56)) | in kvmhv_p9_tm_emulation()
133 vcpu->arch.cr = (vcpu->arch.cr & 0x0fffffff) | in kvmhv_p9_tm_emulation()
143 vcpu->arch.shregs.msr = msr; in kvmhv_p9_tm_emulation()
148 if (!(vcpu->arch.hfscr & HFSCR_TM)) { in kvmhv_p9_tm_emulation()
155 vcpu->arch.fscr = (vcpu->arch.fscr & ~(0xffull << 56)) | in kvmhv_p9_tm_emulation()
167 if (!(vcpu->arch.orig_texasr & TEXASR_FS)) { in kvmhv_p9_tm_emulation()
177 vcpu->arch.cr = (vcpu->arch.cr & 0x0fffffff) | in kvmhv_p9_tm_emulation()
179 vcpu->arch.shregs.msr &= ~MSR_TS_MASK; in kvmhv_p9_tm_emulation()
185 if (!(vcpu->arch.hfscr & HFSCR_TM)) { in kvmhv_p9_tm_emulation()
192 vcpu->arch.fscr = (vcpu->arch.fscr & ~(0xffull << 56)) | in kvmhv_p9_tm_emulation()
199 if (MSR_TM_ACTIVE(msr) || !(vcpu->arch.texasr & TEXASR_FS)) { in kvmhv_p9_tm_emulation()
207 vcpu->arch.cr = (vcpu->arch.cr & 0x0fffffff) | in kvmhv_p9_tm_emulation()
209 vcpu->arch.shregs.msr = msr | MSR_TS_S; in kvmhv_p9_tm_emulation()