mirror of https://github.com/proxmox/mirror_qemu
target/tricore: Replace magic value by MMU_DATA_LOAD definition
cpu_get_phys_page_debug() uses 'DATA LOAD' MMU access type. Reviewed-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20210127224255.3505711-2-f4bug@amsat.org> Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>master
parent
34602f9904
commit
27e4661638
|
@ -50,7 +50,8 @@ hwaddr tricore_cpu_get_phys_page_debug(CPUState *cs, vaddr addr)
|
||||||
int prot;
|
int prot;
|
||||||
int mmu_idx = cpu_mmu_index(&cpu->env, false);
|
int mmu_idx = cpu_mmu_index(&cpu->env, false);
|
||||||
|
|
||||||
if (get_physical_address(&cpu->env, &phys_addr, &prot, addr, 0, mmu_idx)) {
|
if (get_physical_address(&cpu->env, &phys_addr, &prot, addr,
|
||||||
|
MMU_DATA_LOAD, mmu_idx)) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
return phys_addr;
|
return phys_addr;
|
||||||
|
|
Loading…
Reference in New Issue