mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
xen/arm: set -mno-unaligned-access compiler option for Arm32
As the hypervisor is disabling unaligned accesses for Arm32, set the -mno-unaligned-access compiler option for building. This will prohibit unaligned accesses when e.g. accessing 2- or 4-byte data items in packed data structures. Backport: 4.15+ Signed-off-by: Juergen Gross <jgross@suse.com> Acked-by: Julien Grall <jgrall@amazon.com>
This commit is contained in:
1 parent
cf40abbc7f
commit
3e3ff7f9cd
1 file changed
+1
@@ -7,6 +7,7 @@ $(call cc-option-add,CFLAGS,CC,-Wnested-externs)
|
||||
# Prevent floating-point variables from creeping into Xen.
|
||||
CFLAGS-$(CONFIG_ARM_32) += -msoft-float
|
||||
CFLAGS-$(CONFIG_ARM_32) += -mcpu=cortex-a15
|
||||
CFLAGS-$(CONFIG_ARM_32) += -mno-unaligned-access
|
||||
|
||||
CFLAGS-$(CONFIG_ARM_64) += -mcpu=generic
|
||||
CFLAGS-$(CONFIG_ARM_64) += -mgeneral-regs-only # No fp registers etc
|
||||
|
||||