summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChin Liang See <clsee@altera.com>2015-12-28 13:36:59 +0800
committerChin Liang See <clsee@altera.com>2015-12-28 13:36:59 +0800
commitd141e218f3195e305c1521a0d67c81b7cb504b71 (patch)
tree7ec73e7ae922b52481c0fbb824f74e0e514fa059
parent8b4e29b77dc33c67671494dda73ffaac34770d69 (diff)
downloadu-boot-socfpga-d141e218f3195e305c1521a0d67c81b7cb504b71.tar.gz
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.mk1
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