diff options
author | Alexander Graf <agraf@suse.de> | 2012-02-20 11:48:47 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-04-08 05:55:22 -0400 |
commit | c6b3733bef2ffece49336dba7220fefdae5fa908 (patch) | |
tree | 851600c3ee2ec0ad28f861fa54f647f0498d863a /arch/powerpc/kvm | |
parent | 55cdf08b9a6c99f1335fa6ad42372dcfb3715b56 (diff) |
KVM: PPC: e500: fix typo in tlb code
The tlbncfg registers should be populated with their respective TLB's
values. Fix the obvious typo.
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/powerpc/kvm')
-rw-r--r-- | arch/powerpc/kvm/e500_tlb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kvm/e500_tlb.c b/arch/powerpc/kvm/e500_tlb.c index 279e10aaf7b3..e05232b746ff 100644 --- a/arch/powerpc/kvm/e500_tlb.c +++ b/arch/powerpc/kvm/e500_tlb.c | |||
@@ -1268,8 +1268,8 @@ int kvmppc_e500_tlb_init(struct kvmppc_vcpu_e500 *vcpu_e500) | |||
1268 | 1268 | ||
1269 | vcpu->arch.tlbcfg[1] = mfspr(SPRN_TLB1CFG) & | 1269 | vcpu->arch.tlbcfg[1] = mfspr(SPRN_TLB1CFG) & |
1270 | ~(TLBnCFG_N_ENTRY | TLBnCFG_ASSOC); | 1270 | ~(TLBnCFG_N_ENTRY | TLBnCFG_ASSOC); |
1271 | vcpu->arch.tlbcfg[0] |= vcpu_e500->gtlb_params[1].entries; | 1271 | vcpu->arch.tlbcfg[1] |= vcpu_e500->gtlb_params[1].entries; |
1272 | vcpu->arch.tlbcfg[0] |= | 1272 | vcpu->arch.tlbcfg[1] |= |
1273 | vcpu_e500->gtlb_params[1].ways << TLBnCFG_ASSOC_SHIFT; | 1273 | vcpu_e500->gtlb_params[1].ways << TLBnCFG_ASSOC_SHIFT; |
1274 | 1274 | ||
1275 | return 0; | 1275 | return 0; |