aboutsummaryrefslogtreecommitdiff
path: root/target-mips
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2008-03-29 21:43:23 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2008-03-29 21:43:23 +0000
commit53715e48b0cc274f577723f5e6aa2cf2cd72414b (patch)
treed8de886a31817732f7d7361e8ad8d5741d36e22f /target-mips
parenta49d9390d4afe798c5f308113ebea165668e270d (diff)
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
Diffstat (limited to 'target-mips')
-rw-r--r--target-mips/helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-mips/helper.c b/target-mips/helper.c
index 867c522be8..b9622959b1 100644
--- a/target-mips/helper.c
+++ b/target-mips/helper.c
@@ -630,7 +630,7 @@ void r4k_invalidate_tlb (CPUState *env, int idx, int use_extra)
}
#endif
end = addr | mask;
- while (addr < end) {
+ while (addr - 1 < end) {
tlb_flush_page (env, addr);
addr += TARGET_PAGE_SIZE;
}