arch/arm: introduce generic FPU internal option
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 25 Feb 2018 20:18:14 +0000 (21:18 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 20 May 2018 17:01:34 +0000 (19:01 +0200)
commit7f7701301edc18042d6bd47b7ca3aae7c597670f
tree3eb0a2f7010203eb54d1b44e8f57e1e303af7b14
parent6edfa3bf781606eb6747739f289e5319421daddc
arch/arm: introduce generic FPU internal option

Currently, we consider that any VFP FPU is a superset of VFPv2, and thus
we use VFPv2 as a way to detect that a VFP is used.

However, for Cortex-M cores, the optional FPU is not a superset of
VFPv2; it is even not a VFP [0].

As a consequence, we can no longer consider VFPv2 as a indication that
an FPU is present.

So, we introduce two new internal options, BR2_ARM_CPU_MAYBE_HAS_FPU and
BR2_ARM_CPU_HAS_FPU, which we use to consider the presence of an FPU.

[0] https://en.wikipedia.org/wiki/ARM_Cortex-M#Cortex-M4

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
arch/Config.in.arm