Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133724
b: refs/heads/master
c: fb2838d
h: refs/heads/master
v: v3
  • Loading branch information
Liu Yu authored and Avi Kivity committed Mar 24, 2009
1 parent ef625be commit 50afc4a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 87c656b4147cd08c6efba95d8d70c12cba181255
refs/heads/master: fb2838d446f6ee7e13e4149e08ec138753c5c450
2 changes: 0 additions & 2 deletions trunk/arch/powerpc/kvm/e500_emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/powerpc/kvm/e500_tlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/kvm/e500_tlb.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 50afc4a

Please sign in to comment.