mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 11:04:58 -06:00
target/arm: Pass MemOp through get_phys_addr_twostage
Pass memop through get_phys_addr_twostage with its recursion with get_phys_addr_nogpc. Reviewed-by: Helge Deller <deller@gmx.de> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
c6cd9f9fa9
commit
21e5a2870e
1 changed files with 6 additions and 4 deletions
|
@ -3301,7 +3301,7 @@ static bool get_phys_addr_disabled(CPUARMState *env,
|
||||||
|
|
||||||
static bool get_phys_addr_twostage(CPUARMState *env, S1Translate *ptw,
|
static bool get_phys_addr_twostage(CPUARMState *env, S1Translate *ptw,
|
||||||
vaddr address,
|
vaddr address,
|
||||||
MMUAccessType access_type,
|
MMUAccessType access_type, MemOp memop,
|
||||||
GetPhysAddrResult *result,
|
GetPhysAddrResult *result,
|
||||||
ARMMMUFaultInfo *fi)
|
ARMMMUFaultInfo *fi)
|
||||||
{
|
{
|
||||||
|
@ -3313,7 +3313,8 @@ static bool get_phys_addr_twostage(CPUARMState *env, S1Translate *ptw,
|
||||||
ARMSecuritySpace ipa_space;
|
ARMSecuritySpace ipa_space;
|
||||||
uint64_t hcr;
|
uint64_t hcr;
|
||||||
|
|
||||||
ret = get_phys_addr_nogpc(env, ptw, address, access_type, 0, result, fi);
|
ret = get_phys_addr_nogpc(env, ptw, address, access_type,
|
||||||
|
memop, result, fi);
|
||||||
|
|
||||||
/* If S1 fails, return early. */
|
/* If S1 fails, return early. */
|
||||||
if (ret) {
|
if (ret) {
|
||||||
|
@ -3339,7 +3340,8 @@ static bool get_phys_addr_twostage(CPUARMState *env, S1Translate *ptw,
|
||||||
cacheattrs1 = result->cacheattrs;
|
cacheattrs1 = result->cacheattrs;
|
||||||
memset(result, 0, sizeof(*result));
|
memset(result, 0, sizeof(*result));
|
||||||
|
|
||||||
ret = get_phys_addr_nogpc(env, ptw, ipa, access_type, 0, result, fi);
|
ret = get_phys_addr_nogpc(env, ptw, ipa, access_type,
|
||||||
|
memop, result, fi);
|
||||||
fi->s2addr = ipa;
|
fi->s2addr = ipa;
|
||||||
|
|
||||||
/* Combine the S1 and S2 perms. */
|
/* Combine the S1 and S2 perms. */
|
||||||
|
@ -3469,7 +3471,7 @@ static bool get_phys_addr_nogpc(CPUARMState *env, S1Translate *ptw,
|
||||||
if (arm_feature(env, ARM_FEATURE_EL2) &&
|
if (arm_feature(env, ARM_FEATURE_EL2) &&
|
||||||
!regime_translation_disabled(env, ARMMMUIdx_Stage2, ptw->in_space)) {
|
!regime_translation_disabled(env, ARMMMUIdx_Stage2, ptw->in_space)) {
|
||||||
return get_phys_addr_twostage(env, ptw, address, access_type,
|
return get_phys_addr_twostage(env, ptw, address, access_type,
|
||||||
result, fi);
|
memop, result, fi);
|
||||||
}
|
}
|
||||||
/* fall through */
|
/* fall through */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue