summaryrefslogtreecommitdiffstats
path: root/target/arm
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2021-01-28 00:28:22 +0100
committerPeter Maydell2021-01-29 11:47:28 +0100
commita9dd161ff2f54446f0b0547447d8196699aca3e1 (patch)
tree97f456601a56da0108fbb7fb299db49a3a907ff5 /target/arm
parenthw/misc: Fix arith overflow in NPCM7XX PWM module (diff)
downloadqemu-a9dd161ff2f54446f0b0547447d8196699aca3e1.tar.gz
qemu-a9dd161ff2f54446f0b0547447d8196699aca3e1.tar.xz
qemu-a9dd161ff2f54446f0b0547447d8196699aca3e1.zip
target/arm: Replace magic value by MMU_DATA_LOAD definition
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>
Diffstat (limited to 'target/arm')
-rw-r--r--target/arm/helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/arm/helper.c b/target/arm/helper.c
index 677a4aa79e..47e266d7e6 100644
--- a/target/arm/helper.c
+++ b/target/arm/helper.c
@@ -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) {