KVM: ppc: use MMUCR accessor to obtain TID
authorHollis Blanchard <hollisb@us.ibm.com>
Mon, 10 Nov 2008 20:57:34 +0000 (14:57 -0600)
committerAvi Kivity <avi@redhat.com>
Wed, 31 Dec 2008 14:52:25 +0000 (16:52 +0200)
We have an accessor; might as well use it.

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/kvm/44x_tlb.c

index 8b65fbd6c57d0ae8985dec80ca59898595ffefa8..260fa8bc460806e71b1c9b7231e5fc093ce622f1 100644 (file)
@@ -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;