Signed-off-by: Avi Kivity <avi@redhat.com>
int emulated = EMULATE_DONE;
int ra;
int rb;
int emulated = EMULATE_DONE;
int ra;
int rb;
switch (get_op(inst)) {
case 31:
switch (get_op(inst)) {
case 31:
unsigned int victim, pidsel, tsized;
int tlbsel;
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;
tlbsel = (vcpu_e500->mas4 >> 28) & 0x1;
victim = (tlbsel == 0) ? tlb0_get_next_victim(vcpu_e500) : 0;
pidsel = (vcpu_e500->mas4 >> 16) & 0xf;
- /* 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) {
tlbsel = (ea >> 3) & 0x1;
if (ia) {
- /* 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;
tlbsel = vcpu_e500->mas4 >> 28 & 0x1;
victim = (tlbsel == 0) ? tlb0_get_next_victim(vcpu_e500) : 0;
{
/*
* Manual says that tlbsel has 2 bits wide.
{
/*
* 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;
}
*/
return (vcpu_e500->mas0 >> 28) & 0x1;
}