]> www.infradead.org Git - users/dwmw2/qemu.git/commit
target/xtensa: avoid integer overflow in next_page PC check
authorEmilio G. Cota <cota@braap.org>
Tue, 10 Apr 2018 14:47:12 +0000 (10:47 -0400)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 9 May 2018 17:12:21 +0000 (10:12 -0700)
commit4e8b44b6c2350e02ca8e410d40022122b4038bd5
tree98cb0ea38733937b6f807207e044f46010f1ca64
parent4302303d3c1f6f40b92791702f74d783a51ae60c
target/xtensa: 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>
Acked-by: Max Filippov <jcmvbkbc@gmail.com>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/xtensa/translate.c