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 lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (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 2A31BCD6E6A for ; Wed, 3 Jun 2026 03:30:32 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wUcIS-0007C3-Lm; Tue, 02 Jun 2026 23:29:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wUcIC-0006lG-1w for qemu-arm@nongnu.org; Tue, 02 Jun 2026 23:29:20 -0400 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wUcI9-0003ir-BK for qemu-arm@nongnu.org; Tue, 02 Jun 2026 23:29:19 -0400 Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-8421f0e9c5bso1750599b3a.3 for ; Tue, 02 Jun 2026 20:29:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1780457356; x=1781062156; 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=uBm5qOgpGyxlvax8B3WVuYZhhYjwNRk7YVA60wElJQg=; b=kWd5q7kH9SteG+rqw/DNLg4mFXZGgjnIwWvjtEabCU27tQpiq27o7czEAiCP0ce42v NXxP/Kzswm8fAaAlpYA9Omw6yKCCNr9H71nm4n6gj629EuXBzMOkqre/gXWgvMWSM2w8 iwKuevY62jg75+nOwzh0xXFm3cm3+dGeipn7QEc894DYACAdSxXAjeV5lT1u6VSaG3BZ 0Pye3o6NoKp60/oiESzNLXwHhdnmJtIhMZM+J8OYkDSc4iP+6EpWXxz5hBq8pKgpsz06 NX+BihfDx2EUhW1cmz/7NrQOjuSnh3ZwhYXts7lcW8jSycYM+qTaRoDT+/NFvAd8q/ZJ 19lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780457356; x=1781062156; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=uBm5qOgpGyxlvax8B3WVuYZhhYjwNRk7YVA60wElJQg=; b=WVkvp6sPVEwKHF4n0bV+FbvY4Byh07fMOxqM3XDYh7D5R8j9ApLPXFCbORlHFVXXJh 0TWJHlPj2KpdSBA4xvXadxp8gW1qkWeWjteTI/44lvi1FxiFxdoQko08wn+hdEieMBmA 9H/qpQcMN/klg6a7BkHLTkOfmnJ8GBRnbEFb67y3zGdzjcd6sST+rhaQ4v7ArMbwAL9L W45X7Bcn4/vm65Z4UV66jVph09Wh3atm74C4uGoZcdb4wyd65rUxTLgJZIhq3iXgqTpf bQig9P6M1vtXluGM1NY+bm3EZhE2L1uiWSGAqoYJJukboGVfptqrif/l/jMLQc1q/Awa fU6w== X-Gm-Message-State: AOJu0YxR3pPUS8hpzbZgcIVhxpOvOgJhr3Rnht0uJbffnIqppSL20oql Dd+QZ/ZuD3/36dAv8aJaytIiwzpOxIzyUtxmq8zVjtBaaWDCahFs/fgQf7mtMNx9vbPIXCkXfxh X5qJTN7Q= X-Gm-Gg: Acq92OHLP0zRHplDgN3+Z39yoe4jL1dzbWnmwstnqI49g8OFaR/bsMJieatEGHyQa7j UcZe3Nvq9a0NahdINvD/WfTDHx8Z1nACjj5d46Vcy5fcsRMrOzl1qLu3Zdzzezt5P4FeFtXz+tJ 2ZxlvqcHS+YvlOmQ8xZsEtXFBDFpgPYE8D0UsUqTgO2wrRx0qdXlu5kcSDhcsq4ing8yKKTPGte 1gHYg7veP4/7VlkfiiwAIAVWLYfQj/FIvDPj5MZLtELx5zAOgLxXlx9poCflNpbQLxENIVRcxlV 2TyuENcWA7augRu4I2j7IZJXkEbj6c8zNpGsQAXbdCkeh/H3uwyCiCBsmtwJHtWTdBuLXXUcFNs zSVStgkqd4CVCzaH01F9UdXtB6LszzSIks2ltMAIZIeQ4Luamfcdfelefw9R4qq1iVxufnpEPuc sFvXNjtgVV9cV/zqB5dcRoiqRuVRu3Onzl4cgXdVqaUfkKURhzbg== X-Received: by 2002:a05:6a00:bb01:b0:842:4612:55f4 with SMTP id d2e1a72fcca58-84284f79688mr1519389b3a.31.1780457355872; Tue, 02 Jun 2026 20:29:15 -0700 (PDT) Received: from stoup.. ([71.212.142.33]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8428222263dsm1477831b3a.2.2026.06.02.20.29.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jun 2026 20:29:15 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH v9 28/45] target/arm: Enable FEAT_SME_LUTv2 for -cpu max Date: Tue, 2 Jun 2026 20:28:37 -0700 Message-ID: <20260603032855.106930-29-richard.henderson@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260603032855.106930-1-richard.henderson@linaro.org> References: <20260603032855.106930-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::433; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x433.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-arm@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-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Signed-off-by: Richard Henderson --- linux-user/aarch64/elfload.c | 1 + target/arm/tcg/cpu64.c | 1 + docs/system/arm/emulation.rst | 1 + 3 files changed, 3 insertions(+) diff --git a/linux-user/aarch64/elfload.c b/linux-user/aarch64/elfload.c index 1c0c404b7c..06c14e82ea 100644 --- a/linux-user/aarch64/elfload.c +++ b/linux-user/aarch64/elfload.c @@ -222,6 +222,7 @@ abi_ulong get_elf_hwcap2(CPUState *cs) GET_FEATURE_ID(aa64_faminmax, ARM_HWCAP2_A64_FAMINMAX); GET_FEATURE_ID(aa64_fpmr, ARM_HWCAP2_A64_FPMR); GET_FEATURE_ID(aa64_lut, ARM_HWCAP2_A64_LUT); + GET_FEATURE_ID(aa64_sme2p1_lutv2, ARM_HWCAP2_A64_SME_LUTV2); GET_FEATURE_ID(aa64_f8cvt, ARM_HWCAP2_A64_F8CVT | ARM_HWCAP2_A64_F8E4M3 | ARM_HWCAP2_A64_F8E5M2); diff --git a/target/arm/tcg/cpu64.c b/target/arm/tcg/cpu64.c index b48dd01a2c..e466ab5b8a 100644 --- a/target/arm/tcg/cpu64.c +++ b/target/arm/tcg/cpu64.c @@ -1389,6 +1389,7 @@ void aarch64_max_tcg_initfn(Object *obj) t = FIELD_DP64(t, ID_AA64SMFR0, F64F64, 1); /* FEAT_SME_F64F64 */ t = FIELD_DP64(t, ID_AA64SMFR0, I16I64, 0xf); /* FEAT_SME_I16I64 */ t = FIELD_DP64(t, ID_AA64SMFR0, SMEVER, 2); /* FEAT_SME2p1 */ + t = FIELD_DP64(t, ID_AA64SMFR0, LUTv2, 1); /* FEAT_SME_LUTv2 */ t = FIELD_DP64(t, ID_AA64SMFR0, FA64, 1); /* FEAT_SME_FA64 */ SET_IDREG(isar, ID_AA64SMFR0, t); diff --git a/docs/system/arm/emulation.rst b/docs/system/arm/emulation.rst index 470f7d891e..41fa9bfca3 100644 --- a/docs/system/arm/emulation.rst +++ b/docs/system/arm/emulation.rst @@ -160,6 +160,7 @@ the following architecture extensions: - FEAT_SME_F16F16 (Non-widening half-precision FP16 arithmetic for SME2) - FEAT_SME_F64F64 (Double-precision floating-point outer product instructions) - FEAT_SME_I16I64 (16-bit to 64-bit integer widening outer product instructions) +- FEAT_SME_LUTv2 (Lookup table instructions with 4-bit indices and 8-bit elements) - FEAT_SVE (Scalable Vector Extension) - FEAT_SVE_AES (Scalable Vector AES instructions) - FEAT_SVE_B16B16 (Non-widening BFloat16 arithmetic for SVE2) -- 2.43.0