target/arm: Move ARMMMUIdx_Stage2 to a real tlb mmu_idx

We had been marking this ARM_MMU_IDX_NOTLB, move it to a real tlb.
Flush the tlb when invalidating stage 1+2 translations.  Re-use
alle1_tlbmask() for other instances of EL1&0 + Stage2.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20221011031911.2408754-6-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
Richard Henderson 2022-10-10 20:18:52 -07:00 committed by Peter Maydell
parent a1ce3084c5
commit 575a94af3c
3 changed files with 127 additions and 49 deletions

View file

@ -45,6 +45,6 @@
bool guarded;
#endif
#define NB_MMU_MODES 10
#define NB_MMU_MODES 12
#endif