target/arm: Flush tlb for ASID changes in EL2&0 translation regime
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 7 Feb 2020 14:04:26 +0000 (14:04 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 7 Feb 2020 14:04:26 +0000 (14:04 +0000)
commitd06dc93340825030b6297c61199a17c0067b0377
treec201a09b9b43ddf1b5bb811bcf69a60081030d01
parentbb5972e439dc0ac4d21329a9d97bad6760ec702d
target/arm: Flush tlb for ASID changes in EL2&0 translation regime

Since we only support a single ASID, flush the tlb when it changes.

Note that TCR_EL2, like TCR_EL1, has the A1 bit that chooses between
the two TTBR* registers for the location of the ASID.

Tested-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200206105448.4726-31-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c