On (01/09/15 09:42), Arnd Bergmann wrote:
On Friday 09 January 2015 16:02:31 Sergey Senozhatsky wrote:
Hello,
A quick question. I came across the fact that the kernel is using "march=armv7-a" option, and I'm wondering have you ever considered to make it configurable? Say, an ability to select/force mcpu=cortex-a12 (assuming that we use gcc that supports mcpu=cortex-a12 option). For example, to generate sdiv/udiv instead of __aeabi_uidiv/etc.
Are there any known obstacles, that I'm not aware of?
I think we should really add a compile-time option for building with -march=armv7ve, possibly with a fallback to -march=cortex-a15, which was the first one implemented in gcc to support this level.
sounds good, I second this.
However, it should be done in a way that you can only enable build-time support for compatible machines when you do that, just like we don't allow selecting ARMv6 platforms when building with -march=armv7-a.
sure.
thanks for answering,
-ss