From patchwork Wed Oct 2 18:00:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 175032 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1091086ill; Wed, 2 Oct 2019 11:02:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqwcJywTdO0AGVRFtYK49Ps+M4VL1VlMEa429DITMEFs7Cjla1JTWiSeIGngL2rRpQcAcEvg X-Received: by 2002:a92:afcb:: with SMTP id v72mr5107212ill.152.1570039357489; Wed, 02 Oct 2019 11:02:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570039357; cv=none; d=google.com; s=arc-20160816; b=meYZGyWKPrZVK10AOr9EQ3YOyqVdUK1d8UhB7wHczEecvfHreg9gvGr35YoG6Z2adD 9xxNh5W6s1kEK0rpc177H/B5pSNxTz8w5G0RbDSo6TxBBbvqWL6d9bX0JShtaRUKXMlm tglHrHbvc+dnD4hC4jMTCjO9bylngpjieIYuGHLMwWOhlXTsv1mL/b2nl/Nw03ZOMRBl B9HW3XdMpQ5GhHGU1mu6CCdw+rxQ/L+rLo/bK4NwsJ2Z2y3gIAk+MKiTsywmHYBVaIDG +5lBSRh0Nq7isaNS8vKWRQyZNFxijvYqi50Yi++/v67U9ToQY76BrioaSn7x1JmO1SoD dORA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:message-id:date:to:from; bh=uVHVHIDpsci3SEARiz5qQHWD0XwAOncbuxljF1omsic=; b=KB3/IIBRzDrxDHmdm4pRCJW3xyHpDz13hjY6LfnY5j9qyO6jKowaxq0DukYC6pLph6 aQ58WDC7smOm4KnObPKjt/nsybEhKKprlbDRvRSecx/tNJdTYv8LoqOurAYY5qfljq3s D4aVci/yqTaa6wYSPPM7WqMchbXmRnbcqRTOc1crmcAFZNPg4QbQ8CR6ZXM+5VUkxcLP FaYIe43WDf8MJvGrJz+LIlDBP8fYe2bXi91SbO5C52kRU98BQwQtHw3rdhYflYzkxz+5 rP1gI7tYDiTh/8XjAaon5pqoEZVjbjN5ReLJSAHCSU3AANKHuXfGvLYcvjw5jeTr9To4 1YwQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id p21si31178771jah.4.2019.10.02.11.02.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 Oct 2019 11:02:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iFivn-0005HD-1J; Wed, 02 Oct 2019 18:00:55 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iFivl-0005H3-2W for xen-devel@lists.xenproject.org; Wed, 02 Oct 2019 18:00:53 +0000 X-Inumbo-ID: 92a8edae-e53e-11e9-971c-12813bfff9fa Received: from foss.arm.com (unknown [217.140.110.172]) by localhost (Halon) with ESMTP id 92a8edae-e53e-11e9-971c-12813bfff9fa; Wed, 02 Oct 2019 18:00:52 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0CDBE1000; Wed, 2 Oct 2019 11:00:52 -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 213EE3F706; Wed, 2 Oct 2019 11:00:51 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Wed, 2 Oct 2019 19:00:41 +0100 Message-Id: <20191002180047.17144-1-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 Subject: [Xen-devel] [PATCH for-4.13 0/6] 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, Volodymyr Babchuk , Julien Grall , Stefano Stabellini , Julien Grall MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Hi all, After this series, I am able to build Xen on Arm64 with clang 7.0. There are still some issues when building Xen on Arm32 and also using lld. Cross-compilation is left outside for now, but this is still a good start for clang (and armclang). Cheers, Julien Grall (6): xen/arm: fix get_cpu_info() when built with clang xen/arm64: bitops: Match the register size with the value size in flsl 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: mm: Mark check_memory_layout_alignment_constraints as unused xen/arm: traps: Mark check_stack_alignment_constraints as unused xen/arch/arm/mm.c | 3 ++- xen/arch/arm/traps.c | 3 ++- xen/include/asm-arm/arm64/bitops.h | 3 ++- xen/include/asm-arm/cpuerrata.h | 4 ++-- xen/include/asm-arm/cpufeature.h | 4 ++-- xen/include/asm-arm/current.h | 10 +++++++++- 6 files changed, 19 insertions(+), 8 deletions(-)