From nobody Mon Nov 25 07:52:57 2024 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=1716756398; cv=none; d=zohomail.com; s=zohoarc; b=jjqkIWb9mFKMkxxod9zM1KGLjwag6rYQXnzgoZ54hsY46e2A2saEFoCq4u3XiYj88jQzcBaynrk5C8BQkmjGBE5PZhokJL/7Sfv3SA6gZ15QUf/cy0G7IYJkqKzgbWTZKnlAzoii7G7Ki+9UxNUJkiZftu3j9EMgE+rXQBZ4d1Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1716756398; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=DsMIKy/L5erl56a6I+mGWGQ4rNvzDGnzn+CAnzypzwo=; b=E5sSO6URmZw0IOl8DeXmYXhZRDvzGJfsXahaeAyb3Q56LVoCu2AM42GB0tcNP+ejFBGbcPaQUYBVRfK+VTrE/uWxHLwYLMQUfn/lGcM2aP7wvaJpfHyDYXev66GFzhX2VwksaJ+h5cm9Yh1OfvNOg845DncD/JoEOtIuc1UchnI= 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 1716756398680152.594043771585; Sun, 26 May 2024 13:46:38 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sBKkg-0002yh-Vm; Sun, 26 May 2024 16:45:59 -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 1sBKkf-0002xx-0r for qemu-devel@nongnu.org; Sun, 26 May 2024 16:45:57 -0400 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sBKkc-0003fr-Kp for qemu-devel@nongnu.org; Sun, 26 May 2024 16:45:56 -0400 Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-6f850ff30c0so2901517b3a.0 for ; Sun, 26 May 2024 13:45:53 -0700 (PDT) Received: from stoup.. (174-21-72-5.tukw.qwest.net. [174.21.72.5]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-682226fc4bbsm4658843a12.41.2024.05.26.13.45.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 May 2024 13:45:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716756353; x=1717361153; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=DsMIKy/L5erl56a6I+mGWGQ4rNvzDGnzn+CAnzypzwo=; b=tihjwXC6kHqYCCXuT0HsByeg4m7T2bPeldiUZqyXF3i+qgzuk+HYTnVpDgHoHTPUMf +2UW9EHnYSmOvjSfd2cun/Xy0+0yAJrhwOnmdqv6b/D2Zct7UQTvBxMUWwys64lU0BC7 Tke91JNsEFYn1SJ0tHt4UKmBcGBdAmSbvhiBZaBPvjdCRtV2bSCjLqFCoNvzY1Eq2FnZ SuxWQaY5rnJxQpzGMQx7IjCwOL7l5YUzpUJSGtsPF0Ibn/vkAtN+joOPZiqGvNFIJZCl F4VZN4MUuxnBtbS5QtCQO3FWim5Zl6+LDPXlftqNLQuuTKvv0eS65aIf4J3JYqrnwcat xeuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716756353; x=1717361153; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DsMIKy/L5erl56a6I+mGWGQ4rNvzDGnzn+CAnzypzwo=; b=Dwka33alOIMSGOPxkvHdhoA876DPQ+ScI9H8JxSJO8Ib+MhNN7bpg68r/DXpJhr41n Jo/hFSa52/usXtwz8AXbM0WZw/knWmsWMBnsnqpr/4PMMi5s/bGdgKovXMf/AYPCMaka gWqnwqJi8n3+yU6WYv5iUy2tRIubOdXqRApqAPdYBCbbPA5YfeO4jxSebddiGblzGpW9 jT9eNExzHQAMOPSvvtJ3I2oDCWqiQoSM3N9QnN/lvFD4LzIX0MBZJmip6luqAYWuWI0l 6zM1s9vcKNpKmo5ui0gySiesdvaeNiyFaknu6T8tGIfwUv/egLd+3kK9GXE/KFX1DKZV h4Hw== X-Gm-Message-State: AOJu0YwsCOftQ9khztXVJcn7lIoiXPs5+HSNELDC3b6mSzRZ6QxlxwH/ V+8uMVaPigNa/n2Mj+0LEnQ6eVVW0ZHxo2uagK2gGe5Fng7jv06hOHsLfvvHsuCKYvO5gdAH1wy o X-Google-Smtp-Source: AGHT+IEkVANMJbJhPg/CKMsdet/lgahht2iOiXSQf0TVFjjeGQ2uKJDDkpEDavd4VNbcoxyEgslYGw== X-Received: by 2002:a05:6a00:1d8f:b0:6ed:21bc:ed8c with SMTP id d2e1a72fcca58-6f8f36f6f75mr9368156b3a.18.1716756352599; Sun, 26 May 2024 13:45:52 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Marcin Juszkiewicz , qemu-stable@nongnu.org Subject: [PATCH] target/arm: Disable SVE extensions when SVE is disabled Date: Sun, 26 May 2024 13:45:51 -0700 Message-Id: <20240526204551.553282-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 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=2607:f8b0:4864:20::42a; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42a.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, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1716756401225100001 Content-Type: text/plain; charset="utf-8" From: Marcin Juszkiewicz Cc: qemu-stable@nongnu.org Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2304 Reported-by: Marcin Juszkiewicz Signed-off-by: Richard Henderson --- Marcin added the correct patch to the issue 3 weeks ago, so I'm giving him authorship here. I only updated the comment a bit. Marcin, if you'd reply to this with your s-o-b, that would be helpful. r~ --- target/arm/cpu64.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c index c15d086049..862d2b92fa 100644 --- a/target/arm/cpu64.c +++ b/target/arm/cpu64.c @@ -109,7 +109,11 @@ void arm_cpu_sve_finalize(ARMCPU *cpu, Error **errp) * No explicit bits enabled, and no implicit bits from sve-max-vq. */ if (!cpu_isar_feature(aa64_sve, cpu)) { - /* SVE is disabled and so are all vector lengths. Good. */ + /* + * SVE is disabled and so are all vector lengths. Good. + * Disable all SVE extensions as well. + */ + cpu->isar.id_aa64zfr0 =3D 0; return; } =20 --=20 2.34.1