mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-01 18:24:23 +08:00
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>
This commit is contained in:
parent
55cdf08b9a
commit
c6b3733bef
@ -1268,8 +1268,8 @@ int kvmppc_e500_tlb_init(struct kvmppc_vcpu_e500 *vcpu_e500)
|
|||||||
|
|
||||||
vcpu->arch.tlbcfg[1] = mfspr(SPRN_TLB1CFG) &
|
vcpu->arch.tlbcfg[1] = mfspr(SPRN_TLB1CFG) &
|
||||||
~(TLBnCFG_N_ENTRY | TLBnCFG_ASSOC);
|
~(TLBnCFG_N_ENTRY | TLBnCFG_ASSOC);
|
||||||
vcpu->arch.tlbcfg[0] |= vcpu_e500->gtlb_params[1].entries;
|
vcpu->arch.tlbcfg[1] |= vcpu_e500->gtlb_params[1].entries;
|
||||||
vcpu->arch.tlbcfg[0] |=
|
vcpu->arch.tlbcfg[1] |=
|
||||||
vcpu_e500->gtlb_params[1].ways << TLBnCFG_ASSOC_SHIFT;
|
vcpu_e500->gtlb_params[1].ways << TLBnCFG_ASSOC_SHIFT;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user