]> www.infradead.org Git - users/dwmw2/qemu.git/commit
target/riscv: Make translator stop before the end of a page
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 19 Aug 2022 01:00:30 +0000 (18:00 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 6 Sep 2022 07:04:26 +0000 (08:04 +0100)
commit00c07344fa245b22e895b363320ba4cd0ec1088a
tree68143a8c84528fdd3caf8b5206a5df9427ae7263
parentef6e987b64343e0dc9e8526c80ee8d27d0654549
target/riscv: Make translator stop before the end of a page

Right now the translator stops right *after* the end of a page, which
breaks reporting of fault locations when the last instruction of a
multi-insn translation block crosses a page boundary.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1155
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Acked-by: Ilya Leoshkevich <iii@linux.ibm.com>
Tested-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/riscv/translate.c
tests/tcg/riscv64/Makefile.target
tests/tcg/riscv64/noexec.c [new file with mode: 0644]