From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 84AFAC27C76 for ; Wed, 25 Jan 2023 16:39:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=gIunHHtgBK9SNgGe61aDyJtnt0dka1w6Oh5yU4txbFw=; b=m4q0ZhaSOEIe7+ 43QxhX/wfmM+SCaW5hIHe9ae9pX1NHocJoKfCNuOEONh5bqD6HZLetG6DenW7bCoJL3LpQOV3Orbr qhzBCcnO8V0TSSyLZ0SUaCACQZQwKlvhle2ihQBDawYW7vapBPvTHBKAefJZeW42LSlDf7ZGYLqH5 wlFluSwADFcz/bNnyfbTBSH/OUBLUF2FqgfFaDay0Kg9SDYvfOdFnbPQj3MTwPaD5tlqwsLY/b//n 0XaDJgbJo5ZLwiNWQx5C7sq8rTThjH6ZsQZLBlnna0YH/0E93OAfaA/WrayY4BSFmlCyfVZDpHS9x sjhiisIxzpBtTLGPtGmg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKimi-007yA7-9w; Wed, 25 Jan 2023 16:38:04 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKime-007y9F-BV for linux-arm-kernel@lists.infradead.org; Wed, 25 Jan 2023 16:38:02 +0000 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 1CAE54B3; Wed, 25 Jan 2023 08:38:38 -0800 (PST) Received: from capper-ampere.manchester.arm.com (capper-ampere.manchester.arm.com [10.32.100.23]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5EC7A3F5A1; Wed, 25 Jan 2023 08:37:55 -0800 (PST) From: Jamie Cunliffe To: linux-arm-kernel@lists.infradead.org, rust-for-linux@vger.kernel.org Cc: Miguel Ojeda , Catalin Marinas , Will Deacon , steve.capper@arm.com Subject: [PATCH 0/3] Rust enablement for AArch64 Date: Wed, 25 Jan 2023 16:37:36 +0000 Message-Id: <20230125163739.3798252-1-Jamie.Cunliffe@arm.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230125_083800_474076_7B9767E3 X-CRM114-Status: GOOD ( 10.96 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The first patch is from Miguel's tree to enable Rust support for AArch64. This has been tested with the Rust samples, and the generated code has also been manually inspected. The second patch enables the PAC ret and BTI options in the Rust build flags to match the options that are used when building C. The third patch disables the neon and fp target features to avoid fp & simd registers. The use of fp-armv8 will cause a warning from rustc about an unknown feature that is specified. The target feature is still passed through to LLVM, this behaviour is documented as part of the warning. This will be fixed in a future version of the rustc toolchain. This pull request should address it, https://github.com/rust-lang/rust/pull/107294 Jamie Cunliffe (2): arm64: rust: Enable PAC support for Rust. arm64: rust: Disable neon and fp target features. Miguel Ojeda (1): arm64: rust: Enable Rust support for AArch64 Documentation/rust/arch-support.rst | 1 + arch/arm64/Kconfig | 1 + arch/arm64/Makefile | 4 ++++ scripts/generate_rust_target.rs | 13 ++++++++++++- 4 files changed, 18 insertions(+), 1 deletion(-) -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel