From: Hollis Blanchard Date: Mon, 10 Nov 2008 20:57:34 +0000 (-0600) Subject: KVM: ppc: use MMUCR accessor to obtain TID X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bf5d4025c9fe8a64c5905c00bf4292319d634903;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git KVM: ppc: use MMUCR accessor to obtain TID We have an accessor; might as well use it. Signed-off-by: Hollis Blanchard Signed-off-by: Avi Kivity --- diff --git a/arch/powerpc/kvm/44x_tlb.c b/arch/powerpc/kvm/44x_tlb.c index 8b65fbd6c57d..260fa8bc4608 100644 --- a/arch/powerpc/kvm/44x_tlb.c +++ b/arch/powerpc/kvm/44x_tlb.c @@ -339,7 +339,7 @@ int kvmppc_44x_emul_tlbwe(struct kvm_vcpu *vcpu, u8 ra, u8 rs, u8 ws) switch (ws) { case PPC44x_TLB_PAGEID: - tlbe->tid = vcpu->arch.mmucr & 0xff; + tlbe->tid = get_mmucr_stid(vcpu); tlbe->word0 = vcpu->arch.gpr[rs]; break;