linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Questions about FPU and NEON on Cortex-A9 with armv7 instructions!
@ 2010-07-28  6:19 David Yang
  2010-07-28  8:57 ` Martin Guy
  0 siblings, 1 reply; 7+ messages in thread
From: David Yang @ 2010-07-28  6:19 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,everyone

       Because I need use the NEON on Cortex-A9, so I want to add the
parameter : -mfpu=neon -mfloat-abi=softfp to the KBUILD_CFLAGS and
KBUILD_AFLAGS in the Makefile of the top dir like below:

################################################################################################
      ifdef CONFIG_NEON
              KBUILD_CFLAGS   += -march=armv7-a -mtune=cortex-a9
-mfpu=neon -ftree-vectorize -mfloat-abi=softfp -O3
              KBUILD_AFLAGS   += -march=armv7-a -mtune=cortex-a9
-mfpu=neon -ftree-vectorize -mfloat-abi=softfp -O3
      endif
#################################################################################################

But I fount it conflicts with  one parameter in the arch/arm/Makefile,
the parameter: -msoft-float, like below:

#################################################################################################
KBUILD_CFLAGS  +=$(CFLAGS_ABI) $(CFLAGS_THUMB2) $(arch-y) $(tune-y)
$(call cc-option,-mshort-load-bytes,$(call
cc-option,-malignment-traps,)) -msoft-float -Uarm

KBUILD_AFLAGS  +=$(CFLAGS_ABI) $(AFLAGS_THUMB2) $(arch-y) $(tune-y)
-include asm/unified.h -msoft-float
#################################################################################################

When I deleted the -msoft-float in the arch/arm/Makefile,the make of
the kernel could be completed.

My Questions:

1,What should I do to complete the make of the kernel without breaking
the compatible ,I mean do not modify the arch/arm/Makefile
    Or that change is inevitable?

2,I think the NEON is the extension of the VFP unit. If I use
-msoft-float , then the hardware of NEON and VFP will not be used?
   What should I do ,if I want to use both hardware NEON and VFP. Or I
just could use only one of them , with the switch between using
-mfpu=vfp and using -mfpu=neon?


Thanks!

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-07-28 10:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-28  6:19 Questions about FPU and NEON on Cortex-A9 with armv7 instructions! David Yang
2010-07-28  8:57 ` Martin Guy
2010-07-28  9:16   ` David Yang
2010-07-28  9:31     ` Gilles Chanteperdrix
2010-07-28 10:06       ` David Yang
2010-07-28 10:45         ` Gilles Chanteperdrix
2010-07-28 10:46         ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).