mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-11 06:55:37 +00:00
target/arm: Use enum constant in get_phys_addr_lpae() call
The access_type argument to get_phys_addr_lpae() is an MMUAccessType; use the enum constant MMU_DATA_LOAD rather than a literal 0 when we call it in S1_ptw_translate(). Backports commit 59dff859cd850876df2cfa561c7bcfc4bdda4599 from qemu
This commit is contained in:
parent
3df93e463d
commit
bec9ee21b6
|
@ -9801,8 +9801,9 @@ static hwaddr S1_ptw_translate(CPUARMState *env, ARMMMUIdx mmu_idx,
|
|||
pcacheattrs = &cacheattrs;
|
||||
}
|
||||
|
||||
ret = get_phys_addr_lpae(env, addr, 0, ARMMMUIdx_Stage2, &s2pa,
|
||||
&txattrs, &s2prot, &s2size, fi, pcacheattrs);
|
||||
ret = get_phys_addr_lpae(env, addr, MMU_DATA_LOAD, ARMMMUIdx_Stage2,
|
||||
&s2pa, &txattrs, &s2prot, &s2size, fi,
|
||||
pcacheattrs);
|
||||
if (ret) {
|
||||
assert(fi->type != ARMFault_None);
|
||||
fi->s2addr = addr;
|
||||
|
|
Loading…
Reference in a new issue