Skip to content

Commit

Permalink
zynq: Add -mfpu=neon to PLATFORM_RELFLAGS
Browse files Browse the repository at this point in the history
Fixes the following compiler error when using a GNU toolchain:
lowlevel_init.S:19: Error: selected processor does not support ARM mode `fmrx r1,FPEXC'
lowlevel_init.S:21: Error: selected processor does not support ARM mode `fmxr FPEXC,r1'

See also
http://forums.xilinx.com/t5/Embedded-Linux/Current-U-boot-master-u-boot-xlnx-fails-to-build-on-GNU/td-p/407205

Signed-off-by: Mike Looijmans <[email protected]>
Signed-off-by: Michal Simek <[email protected]>
  • Loading branch information
MikeLooijmans authored and Michal Simek committed Jan 31, 2014
1 parent 2657383 commit 10f10db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/cpu/armv7/zynq/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
PLATFORM_RELFLAGS += -fno-strict-aliasing
# Xilinx, added to prevent unaligned accesses which started happening # with GCC 4.5.2 tools
PLATFORM_RELFLAGS += -mno-unaligned-access
# Allow NEON instructions (needed for lowlevel_init.S with GNU toolchain)
PLATFORM_RELFLAGS += -mfpu=neon

0 comments on commit 10f10db

Please sign in to comment.