target/cris: avoid integer overflow in next_page PC check
commit3ac5e413c00511d10d69b8b55fc06cc0c54bd45f
authorEmilio G. Cota <cota@braap.org>
Tue, 10 Apr 2018 14:46:45 +0000 (10 10:46 -0400)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 9 May 2018 17:12:21 +0000 (9 10:12 -0700)
tree475bbefafd87930cff62b0f799701b91fee7e0f9
parent33572269a54ba6339ce00537abfa434e4ffc95c2
target/cris: avoid integer overflow in next_page PC check

If the PC is in the last page of the address space, next_page_start
overflows to 0. Fix it.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Cc: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/cris/translate.c