Re: [PATCH] target/arm: Implement (trivially) ARMv8.2-TTCNP

2020-02-25 Thread Richard Henderson
On 2/25/20 11:38 AM, Peter Maydell wrote: > @@ -705,6 +706,7 @@ static void aarch64_max_initfn(Object *obj) > > u = cpu->isar.id_mmfr4; > u = FIELD_DP32(u, ID_MMFR4, AC2, 1); /* ACTLR2, HACTLR2 */ > +t = FIELD_DP32(t, ID_MMFR4, CNP, 1); /* TTCNP */ > cpu->isar.i

[PATCH] target/arm: Implement (trivially) ARMv8.2-TTCNP

2020-02-25 Thread Peter Maydell
The ARMv8.2-TTCNP extension allows an implementation to optimize by sharing TLB entries between multiple cores, provided that software declares that it's ready to deal with this by setting a CnP bit in the TTBRn_ELx. It is mandatory from ARMv8.2 onward. For QEMU's TLB implementation, sharing TLB