Skip to content

Commit

Permalink
target/arm: Replace magic value by MMU_DATA_LOAD definition
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
philmd authored and pm215 committed Jan 29, 2021
1 parent 1e5ce6e commit a9dd161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target/arm/helper.c
Expand Up @@ -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) {
Expand Down

0 comments on commit a9dd161

Please sign in to comment.