target/arm: Pass MemOp to get_phys_addr_gpc
Zero is the safe do-nothing value for callers to use. Pass the value through from get_phys_addr. 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
29b4d7dbd2
commit
5458670b15
@ -81,7 +81,7 @@ static bool get_phys_addr_nogpc(CPUARMState *env, S1Translate *ptw,
|
|||||||
|
|
||||||
static bool get_phys_addr_gpc(CPUARMState *env, S1Translate *ptw,
|
static bool get_phys_addr_gpc(CPUARMState *env, S1Translate *ptw,
|
||||||
vaddr address,
|
vaddr address,
|
||||||
MMUAccessType access_type,
|
MMUAccessType access_type, MemOp memop,
|
||||||
GetPhysAddrResult *result,
|
GetPhysAddrResult *result,
|
||||||
ARMMMUFaultInfo *fi);
|
ARMMMUFaultInfo *fi);
|
||||||
|
|
||||||
@ -579,7 +579,7 @@ static bool S1_ptw_translate(CPUARMState *env, S1Translate *ptw,
|
|||||||
};
|
};
|
||||||
GetPhysAddrResult s2 = { };
|
GetPhysAddrResult s2 = { };
|
||||||
|
|
||||||
if (get_phys_addr_gpc(env, &s2ptw, addr, MMU_DATA_LOAD, &s2, fi)) {
|
if (get_phys_addr_gpc(env, &s2ptw, addr, MMU_DATA_LOAD, 0, &s2, fi)) {
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3543,7 +3543,7 @@ static bool get_phys_addr_nogpc(CPUARMState *env, S1Translate *ptw,
|
|||||||
|
|
||||||
static bool get_phys_addr_gpc(CPUARMState *env, S1Translate *ptw,
|
static bool get_phys_addr_gpc(CPUARMState *env, S1Translate *ptw,
|
||||||
vaddr address,
|
vaddr address,
|
||||||
MMUAccessType access_type,
|
MMUAccessType access_type, MemOp memop,
|
||||||
GetPhysAddrResult *result,
|
GetPhysAddrResult *result,
|
||||||
ARMMMUFaultInfo *fi)
|
ARMMMUFaultInfo *fi)
|
||||||
{
|
{
|
||||||
@ -3641,7 +3641,8 @@ bool get_phys_addr(CPUARMState *env, vaddr address,
|
|||||||
}
|
}
|
||||||
|
|
||||||
ptw.in_space = ss;
|
ptw.in_space = ss;
|
||||||
return get_phys_addr_gpc(env, &ptw, address, access_type, result, fi);
|
return get_phys_addr_gpc(env, &ptw, address, access_type,
|
||||||
|
memop, result, fi);
|
||||||
}
|
}
|
||||||
|
|
||||||
hwaddr arm_cpu_get_phys_page_attrs_debug(CPUState *cs, vaddr addr,
|
hwaddr arm_cpu_get_phys_page_attrs_debug(CPUState *cs, vaddr addr,
|
||||||
@ -3660,7 +3661,7 @@ hwaddr arm_cpu_get_phys_page_attrs_debug(CPUState *cs, vaddr addr,
|
|||||||
ARMMMUFaultInfo fi = {};
|
ARMMMUFaultInfo fi = {};
|
||||||
bool ret;
|
bool ret;
|
||||||
|
|
||||||
ret = get_phys_addr_gpc(env, &ptw, addr, MMU_DATA_LOAD, &res, &fi);
|
ret = get_phys_addr_gpc(env, &ptw, addr, MMU_DATA_LOAD, 0, &res, &fi);
|
||||||
*attrs = res.f.attrs;
|
*attrs = res.f.attrs;
|
||||||
|
|
||||||
if (ret) {
|
if (ret) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user