aboutsummaryrefslogtreecommitdiff
path: root/target-mips
diff options
context:
space:
mode:
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;
}