target/riscv: Set access as data_load when validating stage-2 PTEs
Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
2fdd2c094a
commit
efe9f9c820
|
@ -435,7 +435,7 @@ restart:
|
||||||
hwaddr vbase;
|
hwaddr vbase;
|
||||||
|
|
||||||
/* Do the second stage translation on the base PTE address. */
|
/* Do the second stage translation on the base PTE address. */
|
||||||
get_physical_address(env, &vbase, &vbase_prot, base, access_type,
|
get_physical_address(env, &vbase, &vbase_prot, base, MMU_DATA_LOAD,
|
||||||
mmu_idx, false, true);
|
mmu_idx, false, true);
|
||||||
|
|
||||||
pte_addr = vbase + idx * ptesize;
|
pte_addr = vbase + idx * ptesize;
|
||||||
|
|
Loading…
Reference in a new issue