]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target/arm: Replace magic value by MMU_DATA_LOAD definition
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Wed, 27 Jan 2021 23:28:22 +0000 (00:28 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 29 Jan 2021 10:47:28 +0000 (10:47 +0000)
cpu_get_phys_page_debug() uses 'DATA LOAD' MMU access type.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20210127232822.3530782-1-f4bug@amsat.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c

index 677a4aa79e7ced1aa84b43bda15522bc19173d69..47e266d7e64fa6cca24d0a07262bc059a70f2fa1 100644 (file)
@@ -12418,7 +12418,7 @@ hwaddr arm_cpu_get_phys_page_attrs_debug(CPUState *cs, vaddr addr,
 
     *attrs = (MemTxAttrs) {};
 
-    ret = get_phys_addr(env, addr, 0, mmu_idx, &phys_addr,
+    ret = get_phys_addr(env, addr, MMU_DATA_LOAD, mmu_idx, &phys_addr,
                         attrs, &prot, &page_size, &fi, &cacheattrs);
 
     if (ret) {