]> git.proxmox.com Git - mirror_qemu.git/commit
target/microblaze: avoid integer overflow in next_page PC check
authorEmilio G. Cota <cota@braap.org>
Tue, 10 Apr 2018 14:47:51 +0000 (10:47 -0400)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 9 May 2018 17:12:21 +0000 (10:12 -0700)
commit56371527f3f8d33be651046700d72489f4df505f
tree34a69f892e4ad9ab754ad5e12a0a821af1c4517d
parent5c433a7aac1a34c199ed5a7a07f4f71349562a8f
target/microblaze: 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/microblaze/translate.c