[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen stable-4.4] xen: arm: make sure gcc doesn't use floating-point registers on arm64



commit d774a33b72b933ef425f52cb771dee60e809201e
Author:     Ian Campbell <ian.campbell@xxxxxxxxxx>
AuthorDate: Thu Jun 26 17:30:14 2014 +0100
Commit:     Ian Campbell <ian.campbell@xxxxxxxxxx>
CommitDate: Wed Jul 2 10:47:47 2014 +0100

    xen: arm: make sure gcc doesn't use floating-point registers on arm64
    
    By using -mgeneral-regs-only which is the Aarch64 equivalent to
    -msoft-float.
    
    Otherwise gcc will corrupt the d* registers, which we don't save/restore 
when
    trapping to/from the hypervisor.
    
    Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
    Acked-by: Julien Grall <julien.grall@xxxxxxxxxx>
    (cherry picked from commit c0726c18e8135f87a5a5793d993d6bea1e3fa925)
---
 xen/arch/arm/Rules.mk |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/xen/arch/arm/Rules.mk b/xen/arch/arm/Rules.mk
index aa2e79f..2db39ad 100644
--- a/xen/arch/arm/Rules.mk
+++ b/xen/arch/arm/Rules.mk
@@ -27,6 +27,7 @@ endif
 
 ifeq ($(TARGET_SUBARCH),arm64)
 CFLAGS += -mcpu=generic
+CFLAGS += -mgeneral-regs-only # No fp registers etc
 arm32 := n
 arm64 := y
 endif
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.4

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.