Commit 53715e48b0cc274f577723f5e6aa2cf2cd72414b
1 parent
a49d9390
Fix infinite loop when invalidating TLB, by Herve Poussineau.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4136 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
target-mips/helper.c
@@ -630,7 +630,7 @@ void r4k_invalidate_tlb (CPUState *env, int idx, int use_extra) | @@ -630,7 +630,7 @@ void r4k_invalidate_tlb (CPUState *env, int idx, int use_extra) | ||
630 | } | 630 | } |
631 | #endif | 631 | #endif |
632 | end = addr | mask; | 632 | end = addr | mask; |
633 | - while (addr < end) { | 633 | + while (addr - 1 < end) { |
634 | tlb_flush_page (env, addr); | 634 | tlb_flush_page (env, addr); |
635 | addr += TARGET_PAGE_SIZE; | 635 | addr += TARGET_PAGE_SIZE; |
636 | } | 636 | } |