diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2021-01-28 01:54:52 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2021-02-21 19:42:34 +0100 |
commit | fd305527e3b2dd66240ba2fede5ca3709aeb2392 (patch) | |
tree | cf84bfefe6e4378c0be8345a1d0d064aba55c010 /target/mips/tlb_helper.c | |
parent | e78d4ab6aae78c3de2eb324e4dc484ece2f8f090 (diff) |
target/mips: Replace magic value by MMU_DATA_LOAD definition
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Message-Id: <20210128144125.3696119-7-f4bug@amsat.org>
Diffstat (limited to 'target/mips/tlb_helper.c')
-rw-r--r-- | target/mips/tlb_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/mips/tlb_helper.c b/target/mips/tlb_helper.c index c9535b7f72..9216c7a91b 100644 --- a/target/mips/tlb_helper.c +++ b/target/mips/tlb_helper.c @@ -492,7 +492,7 @@ hwaddr mips_cpu_get_phys_page_debug(CPUState *cs, vaddr addr) hwaddr phys_addr; int prot; - if (get_physical_address(env, &phys_addr, &prot, addr, 0, + if (get_physical_address(env, &phys_addr, &prot, addr, MMU_DATA_LOAD, cpu_mmu_index(env, false)) != 0) { return -1; } |