[PATCH] arm: Select the TLB invalidate based on the core's Id variant.

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Jun 26 05:53:24 UTC 2019


On 26/06/2019 00:22, Chris Johns wrote:
> On 25/6/19 9:59 pm, Sebastian Huber wrote:
>> Can't you use the
>>
>> B4.1.94 ID_PFR1, Processor Feature Register 1, VMSA
>>
>> and test for the Virtualization Extensions?
> 
> This is a neater solution. Can I assume the ASID support part of the
> virtualization extensions and op 3 is consistent?

I checked the manual again. We should use:

MPIDR, Multiprocessor Affinity Register

Configurations
This register is not implemented in architecture versions before ARMv7.

U, bit[30], in an implementation that includes the Multiprocessing 
Extensions

Indicates a Uniprocessor system, as distinct from processor 0 in a 
multiprocessor system. The possible values of this bit are:

0
  Processor is part of a multiprocessor system.
1
  Processor is part of a uniprocessor system.

> 
>>
>> I am not sure if pre ARMv7-AR processors have this register.
>>
> 
> It indicates the ID-ISA should help but I cannot see how to determine R vs A
> from them.

It must be placed under the #if defined(__ARM_ARCH_7A__) scope.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.


More information about the devel mailing list