From patchwork Wed Mar 27 18:45:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 10873867 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D4D5D14DE for ; Wed, 27 Mar 2019 18:48:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BF38A28755 for ; Wed, 27 Mar 2019 18:48:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B2D3B2875F; Wed, 27 Mar 2019 18:48:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D6BA72876D for ; Wed, 27 Mar 2019 18:48:02 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1h9DYW-0001hO-84; Wed, 27 Mar 2019 18:45:44 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1h9DYV-0001hJ-4d for xen-devel@lists.xenproject.org; Wed, 27 Mar 2019 18:45:43 +0000 X-Inumbo-ID: 85655744-50c0-11e9-bc90-bc764e045a96 Received: from foss.arm.com (unknown [217.140.101.70]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTP id 85655744-50c0-11e9-bc90-bc764e045a96; Wed, 27 Mar 2019 18:45:41 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 269BD374; Wed, 27 Mar 2019 11:45:41 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.196.50]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9C7663F557; Wed, 27 Mar 2019 11:45:38 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Wed, 27 Mar 2019 18:45:19 +0000 Message-Id: <20190327184531.30986-1-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 Subject: [Xen-devel] [PATCH 00/12] xen/arm: Add support to build with clang X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Artem_Mygaiev@epam.com, sstabellini@kernel.org, Andrii_Anisov@epam.com, Razvan Cojocaru , Konrad Rzeszutek Wilk , George Dunlap , Andrew Cooper , Ian Jackson , Tim Deegan , Oleksandr_Tyshchenko@epam.com, Julien Grall , Tamas K Lengyel , Jan Beulich , Wei Liu MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Hi all, This series adds support to build Xen Arm with clang. This series was tested with clang 8.0. Note that I only did build for arm64. I still need to look at the arm32 build. Cheers, Julien Grall (12): xen: clang: Support correctly cross-compile xen/arm: fix get_cpu_info() when built with clang xen/arm: zynqmp: Fix header guard for xilinx-zynqmp-eemi.h xen/arm: memaccess: Initialize correctly *access in __p2m_get_mem_access xen/arm64: bitops: Match the register size with the value size in flsl xen/arm64: sysreg: Implement the 32-bit helpers using the 64-bit helpers xen/arm: cpuerrata: Match register size with value size in check_workaround_* xen/arm: cpufeature: Match register size with value size in cpus_have_const_cap xen/arm: guest_walk: Avoid theoritical unitialized value in get_top_bit xen/arm: mm: Mark check_memory_layout_alignment_constraints as unused xen/arm: traps: Mark check_stack_alignment_constraints as unused xen/arm64: __cmpxchg and __cmpxchg_mb should always be inline config/StdGNU.mk | 9 +++++++-- xen/arch/arm/guest_walk.c | 2 +- xen/arch/arm/mem_access.c | 2 +- xen/arch/arm/mm.c | 3 ++- xen/arch/arm/traps.c | 3 ++- xen/include/asm-arm/arm64/bitops.h | 3 ++- xen/include/asm-arm/arm64/cmpxchg.h | 10 ++++++---- xen/include/asm-arm/arm64/sysregs.h | 11 +++-------- xen/include/asm-arm/cpuerrata.h | 2 +- xen/include/asm-arm/cpufeature.h | 2 +- xen/include/asm-arm/current.h | 10 +++++++++- xen/include/asm-arm/platforms/xilinx-zynqmp-eemi.h | 2 +- 12 files changed, 36 insertions(+), 23 deletions(-)