Re: [Qemu-devel] [PATCH 04/10] target/xtensa: avoid integer overflow in next_page PC check

2018-04-10 Thread Max Filippov
On Tue, Apr 10, 2018 at 9:19 AM, Emilio G. Cota wrote: > If the PC is in the last page of the address space, next_page_start > overflows to 0. Fix it. > > Cc: Max Filippov > Signed-off-by: Emilio G. Cota > --- > target/xtensa/translate.c | 9

[Qemu-devel] [PATCH 04/10] target/xtensa: avoid integer overflow in next_page PC check

2018-04-10 Thread Emilio G. Cota
If the PC is in the last page of the address space, next_page_start overflows to 0. Fix it. Cc: Max Filippov Signed-off-by: Emilio G. Cota --- target/xtensa/translate.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git