[PATCH 2/3] ARM: correctly identify ARMv6 K/Z

Lucas Stach l.stach at pengutronix.de
Thu Mar 2 02:42:48 PST 2017


Am Mittwoch, den 01.03.2017, 18:55 +0100 schrieb Jean-Christophe
PLAGNIOL-VILLARD:
> On 15:26 Wed 01 Mar     , Lucas Stach wrote:
> > The ARMv6 K/Z derivatives have a v7 compatible MMU, but all other
> > parts
> > (including the cache handling) is still at v6. As we don't make use
> > of
> > the more advanced features of the v7 MMU in Barebox, it's okay to
> > just
> > override this to properly identify the CPU as ARMv6.
> 
> evenif we do not use it now I do not liek the idea to report it as
> ARMv6
> 
> It will be better to report it correctly
> 
Weather you like it or not, ARM1176 is ARMv6 with a v7 MMU bolted on,
so reporting it as ARMv6 is the correct thing to do. Also we use the
same detection logic to decide about which cache functions to use and
ARMv6 K/Z still need the ARMv6 cache functions instead of the ARMv7
ones.

The MMU versions is about the least interesting features of those CPUs
as far as Barebox is concerned.

Regards,
Lucas



More information about the barebox mailing list