diff options
author | Hollis Blanchard <hollisb@us.ibm.com> | 2008-11-10 15:57:34 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-12-31 09:52:25 -0500 |
commit | bf5d4025c9fe8a64c5905c00bf4292319d634903 (patch) | |
tree | 4f3bb34278a855f78bfc135ae6dbb6c48583cfde /arch | |
parent | e7cacd40d20849f69c908f1290c714145073685a (diff) |
KVM: ppc: use MMUCR accessor to obtain TID
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/kvm/44x_tlb.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
339 | 339 | ||
340 | switch (ws) { | 340 | switch (ws) { |
341 | case PPC44x_TLB_PAGEID: | 341 | case PPC44x_TLB_PAGEID: |
342 | tlbe->tid = vcpu->arch.mmucr & 0xff; | 342 | tlbe->tid = get_mmucr_stid(vcpu); |
343 | tlbe->word0 = vcpu->arch.gpr[rs]; | 343 | tlbe->word0 = vcpu->arch.gpr[rs]; |
344 | break; | 344 | break; |
345 | 345 | ||