summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kvm/44x_tlb.h
diff options
context:
space:
mode:
authorHollis Blanchard <hollisb@us.ibm.com>2009-01-03 16:23:02 -0600
committerAvi Kivity <avi@redhat.com>2009-03-24 11:02:56 +0200
commitbe8d1cae07d5acf4a61046d7def5eda40f0981e1 (patch)
tree32560487e3fd05bb6c64c394016e9461c70b2227 /arch/powerpc/kvm/44x_tlb.h
parent58a96214a306fc7fc66105097eea9c4f3bfa35bc (diff)
downloadop-kernel-dev-be8d1cae07d5acf4a61046d7def5eda40f0981e1.zip
op-kernel-dev-be8d1cae07d5acf4a61046d7def5eda40f0981e1.tar.gz
KVM: ppc: turn tlb_xlate() into a per-core hook (and give it a better name)
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/powerpc/kvm/44x_tlb.h')
-rw-r--r--arch/powerpc/kvm/44x_tlb.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/powerpc/kvm/44x_tlb.h b/arch/powerpc/kvm/44x_tlb.h
index 772191f..05b6f7e 100644
--- a/arch/powerpc/kvm/44x_tlb.h
+++ b/arch/powerpc/kvm/44x_tlb.h
@@ -85,11 +85,4 @@ static inline unsigned int get_mmucr_sts(const struct kvm_vcpu *vcpu)
return (vcpu->arch.mmucr >> 16) & 0x1;
}
-static inline gpa_t tlb_xlate(struct kvmppc_44x_tlbe *tlbe, gva_t eaddr)
-{
- unsigned int pgmask = get_tlb_bytes(tlbe) - 1;
-
- return get_tlb_raddr(tlbe) | (eaddr & pgmask);
-}
-
#endif /* __KVM_POWERPC_TLB_H__ */
OpenPOWER on IntegriCloud