summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2021-01-27 23:42:53 +0100
committerBastian Koppelmann2021-03-14 14:41:55 +0100
commit27e4661638c16e9f4f5941019ad5e0ebce8b7815 (patch)
tree65f9e96852e2b611e29c0ca2062ce1fa3dc667b2 /target
parenttricore: added triboard with tc27x_soc (diff)
downloadqemu-27e4661638c16e9f4f5941019ad5e0ebce8b7815.tar.gz
qemu-27e4661638c16e9f4f5941019ad5e0ebce8b7815.tar.xz
qemu-27e4661638c16e9f4f5941019ad5e0ebce8b7815.zip
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>
Diffstat (limited to 'target')
-rw-r--r--target/tricore/helper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/tricore/helper.c b/target/tricore/helper.c
index 7715293263..81171db833 100644
--- a/target/tricore/helper.c
+++ b/target/tricore/helper.c
@@ -50,7 +50,8 @@ hwaddr tricore_cpu_get_phys_page_debug(CPUState *cs, vaddr addr)
int prot;
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 phys_addr;