From patchwork Thu Jun 26 16:30:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 32575 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f199.google.com (mail-we0-f199.google.com [74.125.82.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 02BE72066E for ; Thu, 26 Jun 2014 16:32:03 +0000 (UTC) Received: by mail-we0-f199.google.com with SMTP id u56sf3039266wes.6 for ; Thu, 26 Jun 2014 09:32:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id :mime-version:cc:subject:precedence:list-id:list-unsubscribe :list-post:list-help:list-subscribe:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :list-archive:content-type:content-transfer-encoding; bh=3wUBsSeDvovfiHto7ecZikPjud/jOVPpW29L68l0Eyw=; b=DuPdT7uH4Qq2+0mXSfpIHYxtmt+sI6JsJMGsAyZM2ipftFRQeWHoOuYnLJUtoY1CFx XYq51alUKkdK2o9JqdBpSjpyj8dl0u3LGMoiop7O6HKZ53aVBVnyZxc2t4F18EUXmcph 93v6mghw6vE2limFXbygl5qRFnsnhat3AkyVJJOjXYTno52kUYQc74IufLCVkCgICNAr LFufhY0zojQ5hfr3puhtY46ckh9Yq+L3lXaVno+2GxBlLF1asETasZXetBGPM3fHq8i4 j7sTSpdGRN+qzZsZBsB1KfLygFBZtIO1F8D2h0V7V/wbRvItH1WTbel//Oe5g0bEb2ko 0BBQ== X-Gm-Message-State: ALoCoQm93A7gjyP/woj580UWARgnkfMd3iT3soAQpw5VneHu301pi+ZHC/Iaply9KN6i8n3CaRpb X-Received: by 10.152.9.228 with SMTP id d4mr304535lab.1.1403800320355; Thu, 26 Jun 2014 09:32:00 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.22.241 with SMTP id 104ls276306qgn.4.gmail; Thu, 26 Jun 2014 09:32:00 -0700 (PDT) X-Received: by 10.221.37.1 with SMTP id tc1mr14703948vcb.32.1403800320165; Thu, 26 Jun 2014 09:32:00 -0700 (PDT) Received: from mail-ve0-f182.google.com (mail-ve0-f182.google.com [209.85.128.182]) by mx.google.com with ESMTPS id ja19si4875603vec.15.2014.06.26.09.32.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 26 Jun 2014 09:32:00 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.182 as permitted sender) client-ip=209.85.128.182; Received: by mail-ve0-f182.google.com with SMTP id oy12so3987349veb.13 for ; Thu, 26 Jun 2014 09:32:00 -0700 (PDT) X-Received: by 10.52.248.146 with SMTP id ym18mr12336679vdc.8.1403800320034; Thu, 26 Jun 2014 09:32:00 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp43085vcb; Thu, 26 Jun 2014 09:31:59 -0700 (PDT) X-Received: by 10.52.252.226 with SMTP id zv2mr12208977vdc.19.1403800319698; Thu, 26 Jun 2014 09:31:59 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id dr2si4840115vdb.78.2014.06.26.09.31.59 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 26 Jun 2014 09:31:59 -0700 (PDT) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X0CZ2-0002Fe-ED; Thu, 26 Jun 2014 16:30:20 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X0CZ0-0002FG-Uv for xen-devel@lists.xen.org; Thu, 26 Jun 2014 16:30:19 +0000 Received: from [85.158.137.68:17114] by server-5.bemta-3.messagelabs.com id B3/09-27487-A9A4CA35; Thu, 26 Jun 2014 16:30:18 +0000 X-Env-Sender: Ian.Campbell@citrix.com X-Msg-Ref: server-5.tower-31.messagelabs.com!1403800216!12555767!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n X-StarScan-Received: X-StarScan-Version: 6.11.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 9115 invoked from network); 26 Jun 2014 16:30:17 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-5.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 26 Jun 2014 16:30:17 -0000 X-IronPort-AV: E=Sophos;i="5.01,554,1400025600"; d="scan'208";a="147425927" Received: from accessns.citrite.net (HELO FTLPEX01CL02.citrite.net) ([10.9.154.239]) by FTLPIPO02.CITRIX.COM with ESMTP; 26 Jun 2014 16:30:15 +0000 Received: from ukmail1.uk.xensource.com (10.80.16.128) by smtprelay.citrix.com (10.13.107.79) with Microsoft SMTP Server id 14.3.181.6; Thu, 26 Jun 2014 12:30:15 -0400 Received: from drall.uk.xensource.com ([10.80.16.71] helo=drall.uk.xensource.com.) by ukmail1.uk.xensource.com with esmtp (Exim 4.69) (envelope-from ) id 1X0CYw-0001xv-W4; Thu, 26 Jun 2014 17:30:15 +0100 From: Ian Campbell To: Date: Thu, 26 Jun 2014 17:30:14 +0100 Message-ID: <1403800214-28416-1-git-send-email-ian.campbell@citrix.com> X-Mailer: git-send-email 1.7.10.4 MIME-Version: 1.0 X-DLP: MIA2 Cc: julien.grall@linaro.org, tim@xen.org, Ian Campbell , stefano.stabellini@eu.citrix.com Subject: [Xen-devel] [PATCH] xen: arm: make sure gcc doesn't use floating-point registers on arm64 X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ian.campbell@citrix.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.182 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: 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... --- xen/arch/arm/Rules.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/arch/arm/Rules.mk b/xen/arch/arm/Rules.mk index 76b35d9..b5bf5cb 100644 --- a/xen/arch/arm/Rules.mk +++ b/xen/arch/arm/Rules.mk @@ -28,6 +28,7 @@ endif ifeq ($(TARGET_SUBARCH),arm64) CFLAGS += -mcpu=generic +CFLAGS += -mgeneral-regs-only # No fp registers etc arm32 := n arm64 := y endif