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 lists.gnu.org (lists.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 6F2F1D6101A for ; Thu, 29 Jan 2026 14:57:15 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vlTRx-0005T3-UY; Thu, 29 Jan 2026 09:56:49 -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 1vlTRw-0005SO-Fo for qemu-devel@nongnu.org; Thu, 29 Jan 2026 09:56:48 -0500 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vlTRu-0007vN-Uw for qemu-devel@nongnu.org; Thu, 29 Jan 2026 09:56:48 -0500 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-4801c2fae63so8579565e9.2 for ; Thu, 29 Jan 2026 06:56:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1769698605; x=1770303405; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bAlYZVO6F4imjhnmZ6cfstfROiq3dOuBQnCrWAgyRm4=; b=US8kJXsEQWEMjGE8mh97HXdCfSUrp1Kz8sCiuvPx5AxGzNmQdaasRqIKEEbUrYGHmY VUOxopjfG0uF3f9h9GrV5LtSbwjAJrnNVBwENSF/FfNU3Sw+wmbvGUMAhoroPTpHOlyb Li4s2z6zhFbd4Cub1TVV5rZCh4k8l8uuYZNrNyKLevswJ3XDLQRbx2sYnbzUcYlMVyUV 7UT5CZP06oJuVXLAHcmTgZWumlE0wF2u+i1KoAHjAYCRM4dbHRQzNaZIq983KeqNYDES o8m/m4HVQqKWmEF0t98z3yVXY5VSJgJrXP+skHiduKrKrfQxYIfW+DZvvVCAgY+M7k9b muyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769698605; x=1770303405; h=content-transfer-encoding:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bAlYZVO6F4imjhnmZ6cfstfROiq3dOuBQnCrWAgyRm4=; b=n73WSwwhzopVXwkHfF5/h2Uz7MH3PCjFkJkLlEPIzD83nM/IkSYyrm27G35WlzTRCR Iz1WhDzHu50kLoCbKgzkSGLq0PYUaRPaWk1t0rPL86PjVi6Y15UIaFzpDZqd8ZQS90cP mnJ9dQ/lYDa7DMOCLwVF7npx/bCj43ekKww0W1Yct5Zozca2CIS3VbsnLS1V2uk+v64i +3mj09dEIevQQKbKuLubmYXLzV/C9+fumJMxCTEfGP2gEAnrKsAPxc5/RjnJgCV3cIPa hS7qySmvGpLymzsnu7oO2S4rzaDiyC6HtfMOvLfJvDQ1qdkbuL7kbsUqUP2TRJogq3sl i1fg== X-Forwarded-Encrypted: i=1; AJvYcCW1gq0LyLTvlWANLHCuLs5nnHqQrYUBk43CgMawm5CrqTMYMpFNMC5PtUQEmjMWNP+Fa2hO+5Qwi19P@nongnu.org X-Gm-Message-State: AOJu0YyG01t1DMX94RkwLvYfzhryiV5eThzGQEyReITGm6aGhW2LAtsT 7SZhhFYuHm06imYlvdzh/ciP5tRdHLZddoydPj107yJbgrDMLrpLrYDocNigX5MP6SY= X-Gm-Gg: AZuq6aJtTO5EepaaLzvwVhi0rB+Wo9IFYzLDp32mcFj862Te0RZuzyETnBg+yYlS+t5 3FsqSJFWsLP1DKCctqHhnNtvsi/B0h6wLoPQXl0jlqhfzyHm4wLhm/5VqvFW54R/at9mWBUHOqW DQcoEj9H4U5WT1wGv4sf3lQR0h2xa0zcXJSzTFClNU09xp3xroC8m76mbB9WMPjJU8VdGV3cpvB Yh9ijGvDKJ2XPGRaCGdgv7n4uJh5dy+NU/l5Yo4iQalLtY8eUW6mmpui+u8y2z3+0O2pHsV1/ra 0JkH54nglyKcCNhH+km0IZGphRP7oOphlrCVhssLRQyGWoDVnqgTgUHuYzraIcfyEhageZ6XP+/ Pz0E/eVKciJRL0MVCOXklu2ykcDPKWwXKWEehUsNqqFAXrPjgUY6Y+X+A9MYR7WS3VTLto1vUC3 My26o3po0nl2Q= X-Received: by 2002:a05:600c:1994:b0:47e:e2b0:15b8 with SMTP id 5b1f17b1804b1-48069bfa73bmr116819135e9.4.1769698604803; Thu, 29 Jan 2026 06:56:44 -0800 (PST) Received: from draig.lan ([185.124.0.126]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-481a5d30f09sm5951065e9.1.2026.01.29.06.56.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jan 2026 06:56:43 -0800 (PST) Received: from draig (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id DFBD65F878; Thu, 29 Jan 2026 14:56:42 +0000 (GMT) From: =?utf-8?Q?Alex_Benn=C3=A9e?= To: Peter Maydell Cc: qemu-arm@nongnu.org, qemu-devel@nongnu.org, Richard Henderson , Manos Pitsidianakis Subject: Re: [PATCH v2 3/6] target/arm: Handle SME-only CPUs in sve_vqm1_for_el_sm() In-Reply-To: <20260129113455.1283266-4-peter.maydell@linaro.org> (Peter Maydell's message of "Thu, 29 Jan 2026 11:34:52 +0000") References: <20260129113455.1283266-1-peter.maydell@linaro.org> <20260129113455.1283266-4-peter.maydell@linaro.org> User-Agent: mu4e 1.14.0-pre1; emacs 30.1 Date: Thu, 29 Jan 2026 14:56:42 +0000 Message-ID: <87ikck8o2d.fsf@draig.linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x335.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=unavailable 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Peter Maydell writes: > In sve_vqm1_for_el_sm(), we implicitly assume that the CPU has SVE: > if called with sm =3D=3D false for non-streaming mode, we try to return a > vector length from svq_vq. This hits the "assert(sm)" at the bettom > of the function in an SME-only CPU where sve_vq.map is zero. > > Add code to handle the "SME-only CPU not in streaming mode" case: we > report an effective VL of 128 bits, which is what the architecture > rule R_KXKNK says should be used when SVE instructions are disabled > or trapped but floating point instructions are enabled. > > Signed-off-by: Peter Maydell Reviewed-by: Alex Benn=C3=A9e --=20 Alex Benn=C3=A9e Virtualisation Tech Lead @ Linaro