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 D397BC4332F for ; Fri, 11 Nov 2022 21:53:43 +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:References:In-Reply-To: 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: List-Owner; bh=1S0mAr9q8A6CmlTrtJCd2LIsmDJt+yf40+/w4X7Zn6c=; b=qL8ABuJdijec8B kk6VcoZW6CT7ZPwM7cqndE3z4nVdy07Nih/VPfwm+YMvjYL4srPR7DoUfznUfgaFIbEGwzrmyuGk1 8sL7OYVFh/70UcqzuJagn4SSKbKBqhLHgTPRv7bGZgJ6MAi3gffpxFeLrqzWhG44tt8n1NGsYOXcS QO7OW6gNmspROaIea/z+0++9KFhBtJ825umOMpiTY2fckSvEfJfee/m/9d4S/TM7Mz7zPROlwdeW0 rCEUVr8mue6DHTkI8RFQZMrJYD6ZWcvrSNTw1wwfXu4pXTaILFmox8XPmAwVYGCcF4U7oaQAwnIAn Pk/6dJaWEQkDa9HFIGOw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1otbx6-001KiU-FE; Fri, 11 Nov 2022 21:52:44 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1otbvZ-001JvK-LG for linux-arm-kernel@lists.infradead.org; Fri, 11 Nov 2022 21:51:10 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 38DE1620FE; Fri, 11 Nov 2022 21:51:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 824DDC433D6; Fri, 11 Nov 2022 21:51:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668203468; bh=nNqQUwIlLlhNTh00NGbkWKb/ZzHhU7JuzVml+Agak8Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h9mk9NrEPipfUkg5bA67FBxWoKAJGHkll6JxTElFqB9u9oEvGhUqi3KAeY8qJXaIK 6YBN4gDR1jMb2rvQ35KIIEF8IDfK2vwdGaVyndzhcHqGyv/L6DLKmKjwdiEZRnlmjk 5UIvkXOn1IzJMPc28kxGVMgNDBDtGEnfjPD/4tilNZiJSYKRZlRvIOkgK1P2xrmG3z nEFAk8mRmK8WBWUAFLWRxjmhjnAa3EgHFmypWvlYk8wYcVwFUZPN69yTHzNuo82vfD rVlMI0LyRblZr8csUglpVXEfkLsa6GA4J22fEyF6JKvxNetD+pbjA6M3ezWU7CBvyq FApQde1jg3big== From: Mark Brown To: Catalin Marinas , Will Deacon , Shuah Khan , Shuah Khan Cc: Alan Hayward , Luis Machado , Szabolcs Nagy , linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, Mark Brown Subject: [PATCH v3 06/21] arm64/sme: Manually encode ZT0 load and store instructions Date: Fri, 11 Nov 2022 21:50:11 +0000 Message-Id: <20221111215026.813348-7-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221111215026.813348-1-broonie@kernel.org> References: <20221111215026.813348-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=909; i=broonie@kernel.org; h=from:subject; bh=nNqQUwIlLlhNTh00NGbkWKb/ZzHhU7JuzVml+Agak8Y=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBjbsOSnGSUPdo5XijQQVesN8LP48yDwYn+xoJHDLQF kPqnmJ6JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCY27DkgAKCRAk1otyXVSH0ESQB/ 0aROXJzzC+UGWfwuVKJJjnKpVajnZOh5CDeK4OYoUZMMEPuJO3gvFeqT6NJCrAdZ4mEPvxTcC4ovTl kyLsUn1SVAKzSkueZb7wig9cGnn/vrILMVssmMORegveokvQTWqWYr/YsrAeGk9l9aPfkPhN3bM9mG eP2C4ibT279CXA2iNx1nT4GXkx0LVkubgJSwo8fSHJyM9mAnz6tYspxgEnYqFfNc+L85wcOBI2wRVa xeE4jgK9tnWbRxAqf1P3RiwZF8gG/1M6ue2qJybbjwnWd7YxlWD777Y3sNG7TqAQQ6onzcHNUv42Mm yd0RGjOpiTU+TdBlITXO4nh95hOCoI X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221111_135109_756036_2A6F4BB8 X-CRM114-Status: GOOD ( 10.33 ) 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 In order to avoid unrealistic toolchain requirements we manually encode the instructions for loading and storing ZT0. Signed-off-by: Mark Brown --- arch/arm64/include/asm/fpsimdmacros.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/include/asm/fpsimdmacros.h b/arch/arm64/include/asm/fpsimdmacros.h index 5e0910cf4832..cd03819a3b68 100644 --- a/arch/arm64/include/asm/fpsimdmacros.h +++ b/arch/arm64/include/asm/fpsimdmacros.h @@ -220,6 +220,28 @@ | ((\offset) & 7) .endm +/* + * LDR (ZT0) + * + * LDR ZT0, nx + */ +.macro _ldr_zt nx + _check_general_reg \nx + .inst 0xe11f8000 \ + | (\nx << 5) +.endm + +/* + * STR (ZT0) + * + * STR ZT0, nx + */ +.macro _str_zt nx + _check_general_reg \nx + .inst 0xe13f8000 \ + | (\nx << 5) +.endm + /* * Zero the entire ZA array * ZERO ZA -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel