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

[PATCH 5/5] xen: arm64: remove -mgeneral-regs-only for vfp.c


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Date: Fri, 29 Nov 2024 01:49:10 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=zPCV0KRt10rVJH/0K9SWhiiyCsf6ZgnkvvhOIytXR7E=; b=PzWzCOu1lP3pwQPSWNOV8sAui4i8AkF7t6AqSvvDKErogzBq3p7PGXa39Pp93fUd30PjKM1jecEwnin0ncOWd4u6W9pwqV1i8g/T1tsaXda9pwd9AePeso/LDwbSqtTNkAgdVs1zAODYtzKe+Y1HxaXUDwQvzggepZ9MACBW73ULu7cXmC3Gyvljl0ys7cCIe9ZRMS9KalYGCM8t3mt4BtqTSImBNPqVldC8DxQm7cS8481E+siB8VezSKFpVZJFQ0hfiSQWLLt4rKdGocXZI08jc8f5pAxSWrIpsP9JuUMQ6C2BV/GzS82gbyuSrBwLakzY1sKEioIotnmv4+WgKQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=oh6dRaKR+VQMAflkQkxW2DNMvqXPAMFLySxJ5CEFq4wgJPtg3hS4mWWJyl5oYGgdpNzznmBbxN7lzG+1KKOPQqkMhemxb5q6BkvPjcHPvDyGeEwesTCSUw/BGItx5WO+uWhfl3Gdlh5yIKDgKFCelBQwrBWBrJ7Yy7Uf6lQuLHkErU7eWAGw4WxJZWXSprXnk2Xs+Cp8xwwEH1A40xU0EHuQLGV6AhG77tbOSzHz5708SgOlw9bUrPx6tPTLm/3UtXwjx5Aw4ewRA5+n+xbAIt0/WNHjfo5w1sxfvdXArIJQteE73q17JqGhClKrgyqTEkvVmiNahc4HiASz1lVk3g==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Cc: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Fri, 29 Nov 2024 01:49:28 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHbQgDiyfh8gYRhRECvxQLXM9bgDQ==
  • Thread-topic: [PATCH 5/5] xen: arm64: remove -mgeneral-regs-only for vfp.c

vfp.c actually accesses VFP registers, so it can't be built with
-mgeneral-regs-only flag when using clang, as clang will complain
about this:

arch/arm/arm64/vfp.c:9:18: error: instruction requires: fp-armv8
    9 |     asm volatile("stp q0, q1, [%1, #16 * 0]\n\t"
      |

Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>
---
 xen/arch/arm/arm64/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/xen/arch/arm/arm64/Makefile b/xen/arch/arm/arm64/Makefile
index 6491c5350b..af949b8ee6 100644
--- a/xen/arch/arm/arm64/Makefile
+++ b/xen/arch/arm/arm64/Makefile
@@ -18,3 +18,5 @@ obj-$(CONFIG_ARM64_SVE) += sve.o sve-asm.o
 obj-y += traps.o
 obj-y += vfp.o
 obj-y += vsysreg.o
+
+$(obj)/vfp.o: CFLAGS_REMOVE += -mgeneral-regs-only
-- 
2.47.0



 


Rackspace

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