mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-23 06:25:12 +00:00
target/riscv: Set access as data_load when validating stage-2 PTEs
Backports commit efe9f9c820d1322729957a60ff785c9527a79ddf from qemu
This commit is contained in:
parent
5c3a2f391c
commit
a6c323c912
|
@ -429,7 +429,7 @@ restart:
|
|||
hwaddr vbase;
|
||||
|
||||
/* 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);
|
||||
|
||||
pte_addr = vbase + idx * ptesize;
|
||||
|
|
Loading…
Reference in a new issue