KVM: ppc: Fix e500 warnings and some spelling problems
authorLiu Yu <yu.liu@freescale.com>
Wed, 14 Jan 2009 16:47:37 +0000 (10:47 -0600)
committerAvi Kivity <avi@redhat.com>
Tue, 24 Mar 2009 09:03:05 +0000 (11:03 +0200)
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/kvm/e500_emulate.c
arch/powerpc/kvm/e500_tlb.c
arch/powerpc/kvm/e500_tlb.h

index d3c0c7c7f20974711a3f0a0bfe8d6c837c521e8b..7a98d4a4c1edef5946a89982dd9ca4a4e6d7e189 100644 (file)
@@ -30,8 +30,6 @@ int kvmppc_core_emulate_op(struct kvm_run *run, struct kvm_vcpu *vcpu,
        int emulated = EMULATE_DONE;
        int ra;
        int rb;
-       int rs;
-       int rt;
 
        switch (get_op(inst)) {
        case 31:
index 6a50340f575e5fb77c8aa5246fb5d7e42e00b078..e3daf57b5f5edc6a281ff4d458a12100ca2b78af 100644 (file)
@@ -260,7 +260,7 @@ static inline void kvmppc_e500_deliver_tlb_miss(struct kvm_vcpu *vcpu,
        unsigned int victim, pidsel, tsized;
        int tlbsel;
 
-       /* since we only have tow TLBs, only lower bit is used. */
+       /* since we only have two TLBs, only lower bit is used. */
        tlbsel = (vcpu_e500->mas4 >> 28) & 0x1;
        victim = (tlbsel == 0) ? tlb0_get_next_victim(vcpu_e500) : 0;
        pidsel = (vcpu_e500->mas4 >> 16) & 0xf;
@@ -402,7 +402,7 @@ int kvmppc_e500_emul_tlbivax(struct kvm_vcpu *vcpu, int ra, int rb)
 
        ia = (ea >> 2) & 0x1;
 
-       /* since we only have tow TLBs, only lower bit is used. */
+       /* since we only have two TLBs, only lower bit is used. */
        tlbsel = (ea >> 3) & 0x1;
 
        if (ia) {
@@ -471,7 +471,7 @@ int kvmppc_e500_emul_tlbsx(struct kvm_vcpu *vcpu, int rb)
        } else {
                int victim;
 
-               /* since we only have tow TLBs, only lower bit is used. */
+               /* since we only have two TLBs, only lower bit is used. */
                tlbsel = vcpu_e500->mas4 >> 28 & 0x1;
                victim = (tlbsel == 0) ? tlb0_get_next_victim(vcpu_e500) : 0;
 
index d8833f95516393701bcde5c8f1317358ddd28744..ab49e93551852d6c59a5741ec110ad9c6af99650 100644 (file)
@@ -126,7 +126,7 @@ static inline unsigned int get_tlb_tlbsel(
 {
        /*
         * Manual says that tlbsel has 2 bits wide.
-        * Since we only have tow TLBs, only lower bit is used.
+        * Since we only have two TLBs, only lower bit is used.
         */
        return (vcpu_e500->mas0 >> 28) & 0x1;
 }
This page took 0.034541 seconds and 5 git commands to generate.