Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 06 Oct 2014 23:52:01 +0200
From:      Andreas Tobler <andreast-list@fgznet.ch>
To:        Andrew Turner <andrew@fubar.geek.nz>, freebsd-arm@freebsd.org
Subject:   Re: [RFC] Add and armv7hf TARGET_ARCH
Message-ID:  <54330F01.4050108@fgznet.ch>
In-Reply-To: <20141006134626.59cc5573@bender.lan>
References:  <20141006134626.59cc5573@bender.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54330F01.4050108>