diff options
author | Chin Liang See <clsee@altera.com> | 2015-12-28 13:36:59 +0800 |
---|---|---|
committer | Chin Liang See <clsee@altera.com> | 2015-12-28 13:36:59 +0800 |
commit | d141e218f3195e305c1521a0d67c81b7cb504b71 (patch) | |
tree | 7ec73e7ae922b52481c0fbb824f74e0e514fa059 | |
parent | 8b4e29b77dc33c67671494dda73ffaac34770d69 (diff) | |
download | u-boot-socfpga-d141e218f3195e305c1521a0d67c81b7cb504b71.tar.gz |
arm: Switch to -mno-unaligned-access when supported by the compilerrel_socfpga_v2013.01.01_16.03.02_prrel_socfpga_v2013.01.01_16.03.01_prrel_socfpga_v2013.01.01_16.02.02_prrel_socfpga_v2013.01.01_16.02.01_prrel_socfpga_v2013.01.01_16.01.02_prrel_socfpga_v2013.01.01_16.01.01_pr
When we tell the compiler to optimize for ARMv7 (and ARMv6 for that
matter) it assumes a default of SCTRL.A being cleared and unaligned
accesses being allowed and fast at the hardware level. We set this bit
and must pass along -mno-unaligned-access so that the compiler will
still breakdown accesses and not trigger a data abort.
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Mans Rullgard <mans@mansr.com>
Signed-off-by: Tom Rini <trini@ti.com>
Signed-off-by: Chin Liang See <clsee@altera.com>
-rw-r--r-- | arch/arm/cpu/armv7/config.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/config.mk b/arch/arm/cpu/armv7/config.mk index 9c3e2f3ce4..b33a9c2e68 100644 --- a/arch/arm/cpu/armv7/config.mk +++ b/arch/arm/cpu/armv7/config.mk @@ -38,6 +38,7 @@ PLATFORM_RELFLAGS += $(PF_RELFLAGS_SLB_AT) # SEE README.arm-unaligned-accesses PF_NO_UNALIGNED := $(call cc-option, -mno-unaligned-access,) PLATFORM_NO_UNALIGNED := $(PF_NO_UNALIGNED) +PLATFORM_CPPFLAGS += $(PF_NO_UNALIGNED) ifneq ($(CONFIG_IMX_CONFIG),) ALL-y += $(obj)u-boot.imx |