|
@@ -282,7 +282,7 @@ int kvm_mips_host_tlb_inv(struct kvm_vcpu *vcpu, unsigned long va)
|
|
|
if (idx >= current_cpu_data.tlbsize)
|
|
|
BUG();
|
|
|
|
|
|
- if (idx > 0) {
|
|
|
+ if (idx >= 0) {
|
|
|
write_c0_entryhi(UNIQUE_ENTRYHI(idx));
|
|
|
write_c0_entrylo0(0);
|
|
|
write_c0_entrylo1(0);
|
|
@@ -297,7 +297,7 @@ int kvm_mips_host_tlb_inv(struct kvm_vcpu *vcpu, unsigned long va)
|
|
|
|
|
|
local_irq_restore(flags);
|
|
|
|
|
|
- if (idx > 0)
|
|
|
+ if (idx >= 0)
|
|
|
kvm_debug("%s: Invalidated entryhi %#lx @ idx %d\n", __func__,
|
|
|
(va & VPN2_MASK) | kvm_mips_get_user_asid(vcpu), idx);
|
|
|
|