target-mips: fix detection of the end of the page during translation
authorLeon Alrae <leon.alrae@imgtec.com>
Mon, 26 Jan 2015 15:53:16 +0000 (15:53 +0000)
committerLeon Alrae <leon.alrae@imgtec.com>
Fri, 13 Feb 2015 14:11:24 +0000 (14:11 +0000)
commitfe2372910a09034591fd2cfc2d70cca43fccaa95
treedb43f00067a432b2bca993ecb3f2b80ba89e5efa
parent196a7958c65778d05a491309377a65c58f643a1c
target-mips: fix detection of the end of the page during translation

The test is supposed to terminate TB if the end of the page is reached.
However, with current implementation it may never succeed for microMIPS or
mips16.

Reported-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
Reviewed-by: Maciej W. Rozycki <macro@linux-mips.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
target-mips/translate.c