diff options
| author | Peter Maydell | 2020-03-30 23:03:58 +0200 |
|---|---|---|
| committer | Peter Maydell | 2020-05-04 11:32:46 +0200 |
| commit | 59dff859cd850876df2cfa561c7bcfc4bdda4599 (patch) | |
| tree | 9f9b90aa70fcd94dd16c3ae43f1d608bc0d54dc0 | |
| parent | target/arm: Don't use a TLB for ARMMMUIdx_Stage2 (diff) | |
| download | qemu-59dff859cd850876df2cfa561c7bcfc4bdda4599.tar.gz qemu-59dff859cd850876df2cfa561c7bcfc4bdda4599.tar.xz qemu-59dff859cd850876df2cfa561c7bcfc4bdda4599.zip | |
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().
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200330210400.11724-3-peter.maydell@linaro.org
| -rw-r--r-- | target/arm/helper.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/target/arm/helper.c b/target/arm/helper.c index f785e012cd..f17841ec24 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -10052,8 +10052,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; |
