mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
947692e708
commit
24d18d5d7e
2 changed files with 15 additions and 0 deletions
|
@ -30,6 +30,18 @@
|
|||
*/
|
||||
# define TARGET_PAGE_BITS_VARY
|
||||
# define TARGET_PAGE_BITS_MIN 10
|
||||
|
||||
/*
|
||||
* Cache the attrs and shareability fields from the page table entry.
|
||||
*
|
||||
* For ARMMMUIdx_Stage2*, pte_attrs is the S2 descriptor bits [5:2].
|
||||
* Otherwise, pte_attrs is the same as the MAIR_EL1 8-bit format.
|
||||
* For shareability, as in the SH field of the VMSAv8-64 PTEs.
|
||||
*/
|
||||
# define TARGET_PAGE_ENTRY_EXTRA \
|
||||
uint8_t pte_attrs; \
|
||||
uint8_t shareability;
|
||||
|
||||
#endif
|
||||
|
||||
#define NB_MMU_MODES 8
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue