From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH] xen: arm: make sure gcc doesn't use floating-point registers on arm64 Date: Thu, 26 Jun 2014 18:01:40 +0100 Message-ID: <53AC51F4.1050400@linaro.org> References: <1403800214-28416-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1403800214-28416-1-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell , xen-devel@lists.xen.org Cc: tim@xen.org, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org Hi Ian, On 06/26/2014 05:30 PM, Ian Campbell wrote: > 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 Acked-by: Julien Grall > --- > Needless to say I consider this important for 4.4 backport... +1. I'm a bit surprised that it doesn't happen often. Regards, -- Julien Grall