diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-10-10 20:18:48 -0700 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2022-10-20 11:27:49 +0100 |
commit | 24d18d5d7e31462b7bd5bb2c6ee19856699e34ed (patch) | |
tree | fe597097b7c4f3b3c80be8222df043957297c62d /target/arm/tlb_helper.c | |
parent | 947692e708bc61ca724429b5198f0b0f5f68102d (diff) | |
download | qemu-24d18d5d7e31462b7bd5bb2c6ee19856699e34ed.zip qemu-24d18d5d7e31462b7bd5bb2c6ee19856699e34ed.tar.gz qemu-24d18d5d7e31462b7bd5bb2c6ee19856699e34ed.tar.bz2 |
target/arm: Enable TARGET_PAGE_ENTRY_EXTRA
Copy attrs and shareability, into the TLB. This will eventually
be used by S1_ptw_translate to report stage1 translation failures,
and by do_ats_write to fill in PAR_EL1.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20221011031911.2408754-2-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/tlb_helper.c')
-rw-r--r-- | target/arm/tlb_helper.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target/arm/tlb_helper.c b/target/arm/tlb_helper.c index 4960139..353edbe 100644 --- a/target/arm/tlb_helper.c +++ b/target/arm/tlb_helper.c @@ -236,6 +236,9 @@ bool arm_cpu_tlb_fill(CPUState *cs, vaddr address, int size, arm_tlb_mte_tagged(&res.f.attrs) = true; } + res.f.pte_attrs = res.cacheattrs.attrs; + res.f.shareability = res.cacheattrs.shareability; + tlb_set_page_full(cs, mmu_idx, address, &res.f); return true; } else if (probe) { |