From nobody Mon Feb 9 19:54:20 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1770039274; cv=none; d=zohomail.com; s=zohoarc; b=RoOksZpW7LwAPlxsRHqVtYknDtur3z2if1HufOAlZmde9/vgQ6DYpOB3EhTJ8bi4EAVvIUgH3WWAmO3vPzCHFbYmZa8gyTnBK1SfU4BoYqV2v57D2W1660qe9BYIj0+j5Xl2IcfOCqViWthageUqO47KvZ6iykxqTKsid3jV2uw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770039274; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=ay+tH20ip5bhixA+bYgnF6LAzF+PwWUB9/hETGcO/pE=; b=ZVT2n2TjkIWcIKcR0FctvOoCZKzAaXumIvq0/G614lsAxnTncwYo7D8bM67zC4JlMN0TcHg8ILbMTdAEEykVASKLNMTV3gn9c51MCxaMl9BpYV8MIsQgc8LQj9d8OhxYFggsNplDik+GGLOt3mVMIIP4PutDQApukY40dQ+HDiI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1770039274278460.6849205323467; Mon, 2 Feb 2026 05:34:34 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vmu46-0006nb-JL; Mon, 02 Feb 2026 08:34:06 -0500 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 1vmu43-0006lg-Ka for qemu-devel@nongnu.org; Mon, 02 Feb 2026 08:34:03 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vmu41-0002c4-O7 for qemu-devel@nongnu.org; Mon, 02 Feb 2026 08:34:03 -0500 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-4801bc32725so33485955e9.0 for ; Mon, 02 Feb 2026 05:34:01 -0800 (PST) Received: from lanath.. (wildly.archaic.org.uk. [81.2.115.145]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48066c42895sm478054495e9.14.2026.02.02.05.33.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Feb 2026 05:33:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1770039240; x=1770644040; 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=ay+tH20ip5bhixA+bYgnF6LAzF+PwWUB9/hETGcO/pE=; b=hwVYFmE99CJc1VVNvS5vE6FySNKt2DKCFWBH+n5Pi3UHe/oX3uoEsQTBPrJIRnfoVP DY23HkXiM9kL/vFfqVnFrKGdoe0eqNPEJqj1uSJKr0j6EYjirQXBmSsvodk6hHQZH1ZA vLREXumuesGjKrDoZyia8rewBzZVH2vFqXaglrD/xIEbd/b8rss6GSSKqEbvQe9uDFaf sxNSoGEv/dHMrdzVA0spCBBo+U7ZE/DNCF/j4IHLdRaAqVfd2+Qe6gufd5J8kmSUHdgy J5ZbMa4cWF+NpeKKTaogXPtgwiqmZ+kZZt+1EelXvyxYwpzef+A+aAynrRpoQ+EmikK6 fjBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770039240; x=1770644040; 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=ay+tH20ip5bhixA+bYgnF6LAzF+PwWUB9/hETGcO/pE=; b=CzUM/zSPh4G81dOq7ZLd99cz/UXoKgTcADOgld8kROuBipu5G+0RS5BvNwpqqNmCJl 1UWAiY7lx/5uuqCNabZ36cJFlhjE8HxCBP2SY2/zwxqc3ZXTpPU+4VuS8YtN0yTdCL9z nRw2wwEgDg50Ft1+ekr91O6NPDobKHayaoLfHB/nXSFUOrH8KAi2u0mqyEBDKlTuigJo zr7vEnwTILeptxncXoi+Q7CEEBL8m/fe3UrPIIN8AoW6+hFmIcux+9YaoWkX5kMY6raq /z9oWIX6VFTzjzyBcRHJzN9b36H3RdbV/aHuxpMnhkv5TtHVM6kkUcF6Yow0lOFsatTT dKpQ== X-Forwarded-Encrypted: i=1; AJvYcCWaTibWt398f1GvTAt9lgdAOth+KuZX6APoJLmBMmnTK4FtflMaqTHAuTwOg/nmJcLIvbmFSzOmYO2n@nongnu.org X-Gm-Message-State: AOJu0YyptIioAHvH/mo9pJwRAA1sMr7NWYHppo8AGmfmlZRDEVQEDXvq J8TDP9Nq47bAmTAhzPCGkEhJOJLr/XkwCUbx4kVPasLZIoJcB8MNcsc+CV8OZuCH0o0= X-Gm-Gg: AZuq6aLZuVNdEwGg6p8fKjxtq24uthP2d26U2a3Sp7Ah6LiD2uYnwz0GSuaiYMru7dE Ufr5hIFVaTSEI7MJTPfrWpFnhqMNIJcVSLN8qLWlXV2WBUsFPna2lF82QT62UxBh40fK5w7DkLH vLdvIvzCqKXa4A6DBHmNwkFZ0kvD8s1QDcAUoFWUIw9a20qYrPF1KEDR95EZaU8ccOG99xMu3Ig ujLDOD0BaDNy7DpW8g3njsJ5xRylThsFAwbN2GbTrN+yfBaMFHnZbdFW4vMDa1OvzzxFzmPJQx8 TjJSXcJgUpLMUYzxu63L773Pb4qup8ovpDzd9h7er5/9Z1x4Xm/2MVtmaGovey13LMki2tCD40N JRFbUVEwYE26F/IWBhBUxlD90AeVHWY8P7ZRF2BFj3sp3PvCcE0WsdRKqjDX+1ghcOycJl3eech /IM8ggJUqpQHh2oN1CydVw3/K/3U6lvA== X-Received: by 2002:a05:600c:3b23:b0:477:7af8:c8ad with SMTP id 5b1f17b1804b1-482db4a01edmr169731355e9.31.1770039240266; Mon, 02 Feb 2026 05:34:00 -0800 (PST) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: Richard Henderson , Manos Pitsidianakis , =?UTF-8?q?Alex=20Benn=C3=A9e?= Subject: [PATCH v3 04/15] target/arm/tcg: Allow SVE RAX1 in SME2p1 streaming mode Date: Mon, 2 Feb 2026 13:33:42 +0000 Message-ID: <20260202133353.2231685-5-peter.maydell@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260202133353.2231685-1-peter.maydell@linaro.org> References: <20260202133353.2231685-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x331.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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1770039275931154100 Content-Type: text/plain; charset="utf-8" The SVE RAX1 instruction is permitted in SME streaming mode starting from SME2p1. We forgot to allow this relaxation when we implemented SME2p1. Cc: qemu-stable@nongnu.org Fixes: 7b1613a1020d2 ("target/arm: Enable FEAT_SME2p1 on -cpu max") Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target/arm/tcg/translate-sve.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/target/arm/tcg/translate-sve.c b/target/arm/tcg/translate-sve.c index 81f487152c..e853b4dd0a 100644 --- a/target/arm/tcg/translate-sve.c +++ b/target/arm/tcg/translate-sve.c @@ -7803,8 +7803,17 @@ TRANS_FEAT_NONSTREAMING(SM4E, aa64_sve2_sm4, gen_gve= c_ool_arg_zzz, TRANS_FEAT_NONSTREAMING(SM4EKEY, aa64_sve2_sm4, gen_gvec_ool_arg_zzz, gen_helper_crypto_sm4ekey, a, 0) =20 -TRANS_FEAT_NONSTREAMING(RAX1, aa64_sve2_sha3, gen_gvec_fn_arg_zzz, - gen_gvec_rax1, a) +static bool trans_RAX1(DisasContext *s, arg_RAX1 *a) +{ + if (!dc_isar_feature(aa64_sve2_sha3, s)) { + return false; + } + if (!dc_isar_feature(aa64_sme2p1, s)) { + /* SME2p1 adds this as valid in streaming SVE mode */ + s->is_nonstreaming =3D true; + } + return gen_gvec_fn_arg_zzz(s, gen_gvec_rax1, a); +} =20 TRANS_FEAT(FCVTNT_sh, aa64_sve2, gen_gvec_fpst_arg_zpz, gen_helper_sve2_fcvtnt_sh, a, 0, FPST_A64) --=20 2.43.0