[RFC] Add and armv7hf TARGET_ARCH
Andreas Tobler
andreast-list at fgznet.ch
Mon Oct 6 21:52:14 UTC 2014
On 06.10.14 14:46, Andrew Turner wrote:
> I'm interested in peoples opinion on creating a new TARGET_ARCH to
> target ARMv7 SoCs. This will target all the current Cortex-A chips we
> support but not the Raspberry Pi. My intention with this is to have it
> become the tier 1 arm platform.
>
> This platform will support 32-bit Cortex-A based SoCs with a VFP
> unit. As it would be targeting ARMv7 we could look at supporting
> Thumb-2.
>
> As the VFP unit is optional and future SoCs without it will only be
> supported by the armv6 TARGET_ARCH, however I would expect almost all
> ARMv7 designs to include it.
>
> There is a downside to this, and as far as I know the problems are:
> * It could be confusing to figure out which TARGET_ARCH you need.
> * The Raspberry Pi will not be supported as its core is too old.
>
> I've attached my patch to build as armv7hf. It has been tested on a
> Wandboard Quad.
>
> Comments?
Here the patch does not apply. Manually applied.
Configuring math/gmp shows a segfaulting clang++.
Investigating later.
Went back to clang built v6hf, since gcc built pkg on v6 segfaults too.
Sigh. I need more such board to test in parallel...
I think something like this part would also be needed, no?
Thanks,
Andreas
Index: sys/arm/include/param.h
===================================================================
--- sys/arm/include/param.h (revision 272668)
+++ sys/arm/include/param.h (working copy)
@@ -53,9 +53,13 @@
#define __PCI_REROUTE_INTERRUPT
-#if __ARM_ARCH >= 6
+#if __ARM_ARCH >= 7
+#define _V6_SUFFIX "v7"
+#endif
+#if __ARM_ARCH == 6
#define _V6_SUFFIX "v6"
-#else
+#endif
+#if __ARM_ARCH <= 5
#define _V6_SUFFIX ""
#endif
More information about the freebsd-arm
mailing list