mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-07-06 10:00:34 +00:00
arm: helper: rename get_phys_addr_mpu
This get_phys_addr is really for pmsav5. Rename it accordingly. Backports commit 13689d43646482f7305282de1bdd662c0d2b8b77 from qemu
This commit is contained in:
parent
0299851aa0
commit
c1554dbd06
|
@ -5218,9 +5218,9 @@ do_fault:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool get_phys_addr_mpu(CPUARMState *env, uint32_t address,
|
static bool get_phys_addr_pmsav5(CPUARMState *env, uint32_t address,
|
||||||
int access_type, ARMMMUIdx mmu_idx,
|
int access_type, ARMMMUIdx mmu_idx,
|
||||||
hwaddr *phys_ptr, int *prot, uint32_t *fsr)
|
hwaddr *phys_ptr, int *prot, uint32_t *fsr)
|
||||||
{
|
{
|
||||||
int n;
|
int n;
|
||||||
uint32_t mask;
|
uint32_t mask;
|
||||||
|
@ -5361,8 +5361,8 @@ static inline bool get_phys_addr(CPUARMState *env, target_ulong address,
|
||||||
|
|
||||||
if (arm_feature(env, ARM_FEATURE_MPU)) {
|
if (arm_feature(env, ARM_FEATURE_MPU)) {
|
||||||
*page_size = TARGET_PAGE_SIZE;
|
*page_size = TARGET_PAGE_SIZE;
|
||||||
return get_phys_addr_mpu(env, address, access_type, mmu_idx, phys_ptr,
|
return get_phys_addr_pmsav5(env, address, access_type, mmu_idx,
|
||||||
prot, fsr);
|
phys_ptr, prot, fsr);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (regime_using_lpae_format(env, mmu_idx)) {
|
if (regime_using_lpae_format(env, mmu_idx)) {
|
||||||
|
|
Loading…
Reference in a new issue