]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
target/riscv: Set access as data_load when validating stage-2 PTEs
authorAlistair Francis <alistair.francis@wdc.com>
Fri, 27 Mar 2020 19:53:40 +0000 (12:53 -0700)
committerAlistair Francis <alistair.francis@wdc.com>
Fri, 19 Jun 2020 15:24:07 +0000 (08:24 -0700)
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
target/riscv/cpu_helper.c

index 62fe1ecc8f61fc1f78e1f9fd061a0302ac2bdc51..eda7057663e4c93f4f5f0c5b883aa61860c5e587 100644 (file)
@@ -435,7 +435,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;