summaryrefslogtreecommitdiffstats
path: root/target/cris
diff options
context:
space:
mode:
authorEmilio G. Cota2018-04-10 17:11:04 +0200
committerRichard Henderson2018-05-09 19:12:21 +0200
commit33572269a54ba6339ce00537abfa434e4ffc95c2 (patch)
tree152d2d50816a645bc043e2ca99f008212caf1bac /target/cris
parentMerge remote-tracking branch 'remotes/cody/tags/block-pull-request' into staging (diff)
downloadqemu-33572269a54ba6339ce00537abfa434e4ffc95c2.tar.gz
qemu-33572269a54ba6339ce00537abfa434e4ffc95c2.tar.xz
qemu-33572269a54ba6339ce00537abfa434e4ffc95c2.zip
target/riscv: 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. Reported-by: Richard Henderson <richard.henderson@linaro.org> Suggested-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Michael Clark <mjc@sifive.com> Acked-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de> Cc: Michael Clark <mjc@sifive.com> Cc: Palmer Dabbelt <palmer@sifive.com> Cc: Sagar Karandikar <sagark@eecs.berkeley.edu> Cc: Bastian Koppelmann <kbastian@mail.uni-paderborn.de> Signed-off-by: Emilio G. Cota <cota@braap.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/cris')
0 files changed, 0 insertions, 0 deletions