OSDN Git Service

RISC-V: Handle bus errors in the page table walker
authorPalmer Dabbelt <palmer@sifive.com>
Tue, 8 Oct 2019 20:51:50 +0000 (13:51 -0700)
committerPalmer Dabbelt <palmer@sifive.com>
Mon, 28 Oct 2019 14:47:27 +0000 (07:47 -0700)
commitaacb578fad214383e6803cba35d6e1bce71f4a3f
tree3244f44dccddb88576e4ea72003b92124baf17ba
parente6e03dcffd3583f6fd8148108e65d514b8382c2c
RISC-V: Handle bus errors in the page table walker

We directly access physical memory while walking the page tables on
RISC-V, but while doing so we were using cpu_ld*() which does not report
bus errors.  This patch converts the page table walker over to use
address_space_ld*(), which allows bus errors to be detected.

Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
target/riscv/cpu_helper.c