[Buildroot] [PATCH] pixman: properly enable/disable ARM optimizations

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sat Aug 27 07:27:16 UTC 2016


Hello,

On Sat, 27 Aug 2016 00:07:59 +0200, Arnout Vandecappelle wrote:

> > +ifeq ($(BR2_ARM_CPU_HAS_ARM),y)  
> 
>  Minor nit: the instructions used by arm-simd are actually ARMv5TE instructions.
> Fortunately, all our ARMv5 CPU options support the E extension, so we can add
> !BR2_ARM_CPU_ARMV4 to the condition. Still, it's not strictly necessary, because
> the compiler can still generate this v5E code, and the resulting ELF file is
> compatible with v4 object files, and there is a CPU check so it will only be run
> if it is really supported (I didn't actually test that, but the code is there).
> And adding that extra condition will make the code really ugly. It's just weird
> to pass --enable-arm-simd when it will not be used in the end.

I should have added such an explanation. I indeed realized that the
SIMD code would not work with the oldest ARM cores, but pixman is
handling that properly. The only case where pixman's logic fall short
is on CPUs that do not support ARM instructions at all.

> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>

I'll grab a part of your explanation to extend the commit log when
applying the patch. Thanks for the review!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com


More information about the buildroot mailing list