Skip to contentSkip to conversation

kvm: ppc: use MMUCR accessor to obtain TID

PATCH New Hollis Blanchard 1 participant 1 message Nov 10, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvm: ppc: use MMUCR accessor to obtain TID

We have an accessor; might as well use it.

arch/powerpc/kvm/44x_tlb.c +1 -1
@@ -331,7 +331,7 @@ int kvmppc_44x_emul_tlbwe(struct kvm_vcp
 
 	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;