From patchwork Mon May 5 01:52:16 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 887426 Delivered-To: patch@linaro.org Received: by 2002:a5d:430f:0:b0:38f:210b:807b with SMTP id h15csp1824944wrq; Sun, 4 May 2025 18:57:25 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX8xgrExKUZMQT/FvZfI+H4xgKMfgPVeKr+3T2sG+rtitouNQZ0x6KGfznLuyukE72MKwBM7A==@linaro.org X-Google-Smtp-Source: AGHT+IE21cvotNpPT+OzBhe5pE8M444ajclZQZsdefSw6lcwSeZq3yjReI56lC9+hOFZfF5mfine X-Received: by 2002:a05:6214:491:b0:6f2:bde5:9ddb with SMTP id 6a1803df08f44-6f51574cdc4mr173232996d6.17.1746410245604; Sun, 04 May 2025 18:57:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1746410245; cv=none; d=google.com; s=arc-20240605; b=RiA1p3lXbUdsmgKz43Zf2/wWOlK9hmfe9Bpq1WkNgLvSCZFwhMr1XLQq44v/zBVNL8 YkyNV1QlygXmTpKdegxS8WojejUcdSfkFX2+uZ5/HYHdwhi93n428U5a/qBzK4oe1aiH Mi/pmC1GH4m0C3hPTz+j0cYwd4C/GT2RrGgO86oDhpFcdJx+9s5lphxTjLwJrXHCMXLE s9BvB+ly+uMNWWUCnYKTl4zk9PXs9Flpz7zRBeW5yeZ+takEFheVGt/jaVdXcdcJWtmv c8UUZH3dsazbtQWDQg1ojdS7iaRUF+GQgKj5oh5iuxmtyj2cqDySRU3ZTQVsGModW7V3 d0ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=3FxyL5xQTQeKYw4fbOUfGUh6DzvIDzEt1jfdRlnRDo0=; fh=NjGqp/B1Bwp2wtTnyHxTvlXYBfwRSGY9cE7hmKIZquY=; b=JcPqsjEz/zboSwWhaeTn8xu6i8A14q+kR1ZWMhcxitwYSthPGjsRARLHn9ySOhoLp9 cn1BE7BpTFFnqb9pcjLtypzL1bBqeBxQEPXJumu+3ulSoT7FW/XEKvVUeObJvSSzfSuC yIIuADtiqHAtGdZoyrqQeVvrof9DwBFzMu2voM1g8uCDmntMfAF5HO3zXaMTavUWqfj6 n758FYY3ddY8m2ZdZwGeE3Zjj+qX0QDaQs1m30QVSwxbabF0mH0BDUT6bybvQpaKxWhe Pr4UFLLHPi6OOsx3Cawu4T1AUekpfJQiQDdR5f3SxgpJY6GAWVtR9HR15rd0w++VyKY9 GDVA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aexxEwG8; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-48b960cfa76si85386871cf.72.2025.05.04.18.57.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 04 May 2025 18:57:25 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aexxEwG8; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uBl4O-0002FI-Ko; Sun, 04 May 2025 21:56:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uBl4G-0001aq-TD for qemu-devel@nongnu.org; Sun, 04 May 2025 21:56:29 -0400 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uBl4E-00035S-Fv for qemu-devel@nongnu.org; Sun, 04 May 2025 21:56:28 -0400 Received: by mail-pg1-x536.google.com with SMTP id 41be03b00d2f7-b0b2d0b2843so2882133a12.2 for ; Sun, 04 May 2025 18:56:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1746410185; x=1747014985; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3FxyL5xQTQeKYw4fbOUfGUh6DzvIDzEt1jfdRlnRDo0=; b=aexxEwG8u41yu5h4oW+HYbsqeMfzqk5f87hhXnjQNPOyOD2tUFZamyqCjklcvq7orf o5r3PgmI5HRXJk9NZ8tOGGCuV8I3GbhVEWPkeMR6jrBUCiL86q9kl4IKb9bcmzCkw7kM 5iXkFSJqX5ESa/AybeH7zt22KxT/B72HC966OlTqSWuEzNB3COuS4g90E6U2a5wK4eUi qjLCD5xFhAQZIXnbxSnvzxYfLWo+Is9gUBoOI3tEMO96w5cnZaF/b5nz47GPrCrPVHXE CSWHVg9eXfcRF3s+mr1W4oStXkXZlUufcqDWRV0UqwDS6NKBxzU655zYUdY106h4G99P S08A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746410185; x=1747014985; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3FxyL5xQTQeKYw4fbOUfGUh6DzvIDzEt1jfdRlnRDo0=; b=DfVn2oQIQByMIVJLBhj8qIYTMdGb6NvBgDX4Jqugw0l2oR1yO6kp12WqmCVVMGJBuJ wGTyLaRim+9oir4NixFlFtrQxX6y4FUiAhNiSC6Clp2RRRe/mNFhbESQebafuJrqfBPP Hxxuyclu+vk/3k8mbP+EtWUBQzZPVMbNzsWr7HGXhwqGJfUY32rpPHLZqdrrrt0L0OzD BtDVgtgp10UOhry4o+SuMc1qJfIJBGf46LtbbvjBjCaiFLwxmMRyK77+R+QJ7zH//ExJ 2Z9duJNXjs5jB/fNP0SfHKZ+dwJUlFCIP3XmxtkDoygkdA2Wfdxuxpj0twXadNkAJai8 xVhw== X-Gm-Message-State: AOJu0YwI95IWxZlTE03E+0boYyhQtvWX9tUeRMWH4JEczhtGEtqfX8Dm W6aeOzbDcSaMdgNOCEAVV2pnKlvshCdx15r9rjjjRcbsRpoklWjN4AroxqfSRQAAvb9o/s2nnUc onjY= X-Gm-Gg: ASbGncujl1Y9K5q+bi6pPdIzfADLqVbY9pGHOV4G3/tvvroa2AQ+mYpZwwKnqX8Hnbb q/hUIlboZ23FCE0/imsrHLSfw8wIojuOTyjmxI6HV+pej68/AoSYESuTKlwae66lmNB9Fjx+xVm Uzsg7zyWN40wm87m1AWvupvAie9XlCvA6o8i92j3phglDS5huYsI3tZC4lp3pCRRtRwq25/SIfi d///l4S6mVP7YjuMu701BN7c41xAxoGuPp4HnEpNeZNtQV8NDQt20QFOXKytNGMbozuJVCyZfiF nb4VgX7NNISK92ao5riTzuRAS1O6XtRXlkkl2Gt4 X-Received: by 2002:a17:90b:586e:b0:2ee:6d08:7936 with SMTP id 98e67ed59e1d1-30a4e5c5ed2mr16612751a91.20.1746410185269; Sun, 04 May 2025 18:56:25 -0700 (PDT) Received: from pc.. ([38.41.223.211]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-30a47640279sm7516495a91.44.2025.05.04.18.56.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 May 2025 18:56:24 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Paolo Bonzini , qemu-arm@nongnu.org, richard.henderson@linaro.org, alex.bennee@linaro.org, kvm@vger.kernel.org, Peter Maydell , anjo@rev.ng, =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH v5 41/48] target/arm/tcg/crypto_helper: compile file twice (system, user) Date: Sun, 4 May 2025 18:52:16 -0700 Message-ID: <20250505015223.3895275-42-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250505015223.3895275-1-pierrick.bouvier@linaro.org> References: <20250505015223.3895275-1-pierrick.bouvier@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::536; envelope-from=pierrick.bouvier@linaro.org; helo=mail-pg1-x536.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Pierrick Bouvier Reviewed-by: Richard Henderson --- target/arm/tcg/crypto_helper.c | 4 +++- target/arm/tcg/meson.build | 8 +++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/target/arm/tcg/crypto_helper.c b/target/arm/tcg/crypto_helper.c index 7cadd61e124..ca14bd17a58 100644 --- a/target/arm/tcg/crypto_helper.c +++ b/target/arm/tcg/crypto_helper.c @@ -12,12 +12,14 @@ #include "qemu/osdep.h" #include "cpu.h" -#include "exec/helper-proto.h" #include "tcg/tcg-gvec-desc.h" #include "crypto/aes-round.h" #include "crypto/sm4.h" #include "vec_internal.h" +#define HELPER_H "tcg/helper.h" +#include "exec/helper-proto.h.inc" + union CRYPTO_STATE { uint8_t bytes[16]; uint32_t words[4]; diff --git a/target/arm/tcg/meson.build b/target/arm/tcg/meson.build index dd12ccedb18..e3be0eb22b2 100644 --- a/target/arm/tcg/meson.build +++ b/target/arm/tcg/meson.build @@ -30,7 +30,6 @@ arm_ss.add(files( 'translate-mve.c', 'translate-neon.c', 'translate-vfp.c', - 'crypto_helper.c', 'hflags.c', 'iwmmxt_helper.c', 'm_helper.c', @@ -63,3 +62,10 @@ arm_system_ss.add(files( arm_system_ss.add(when: 'CONFIG_ARM_V7M', if_true: files('cpu-v7m.c')) arm_user_ss.add(when: 'TARGET_AARCH64', if_false: files('cpu-v7m.c')) + +arm_common_system_ss.add(files( + 'crypto_helper.c', +)) +arm_user_ss.add(files( + 'crypto_helper.c', +))