From patchwork Fri Jun 7 19:12:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 802349 Delivered-To: patch@linaro.org Received: by 2002:adf:f147:0:b0:35b:5a80:51b4 with SMTP id y7csp1024036wro; Fri, 7 Jun 2024 15:59:57 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVh5tfZtMpDMK/Tl+X9m0DIDsvdFcQ2DUaLsx4BLoWErF6N+kOy3QzZRCr2BlSKGS4S5JYD3VPy5exFrba9AlHn X-Google-Smtp-Source: AGHT+IFkJJyZoKZj5N0nezye0751qH0U6cqosCOlW9YN0MV6TRZZx5Vud3VBm6p4hH1KE/9Cu+8T X-Received: by 2002:a05:6214:5544:b0:6af:c5c2:5ff8 with SMTP id 6a1803df08f44-6b059f144bbmr49250066d6.36.1717801196660; Fri, 07 Jun 2024 15:59:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1717801196; cv=none; d=google.com; s=arc-20160816; b=L3U7HPBYJIlrHsiAlk+feYlhtjWIHQyjoIDaaPhTPrkJCJMFjMllerZWogGIpywNUm A+N41ofhKvWbYk7QcufmrlFzXbJLWmt6566nPiw2VXyVuuInwUErJ0bHV5/ziOPDa0aD nzz5w1CScIbb47rKHZaBhlRAbtAe+L0anyBkTICXxi3J73/R64YF02IKm6UtBqeFsu/g BdzKRgsGpitdT7+kPnU1mhRMxVauPm1kMbUFSMxYuwoSrgyQqWvWgZvmEvH49r+XAcVE E4MphRARjkMjmJ2izK8QOjDCP4oEuXZB4xALGK0zGC0EpbSlkz6U9/2NUQOwukZOoQGQ pnvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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; bh=NGjlEGx6T6+OpqzqDXRwLCrt1G028VHgyKZQGQLnuf0=; fh=aqdVPOO5/ewHx85jjyvtU77FupVJMtNmzkZraoCtO0Q=; b=ImDKLVTblB2sM3pp/qqygS5VVzRNEHL75DGVL83DvYimnax0vktFSrkIUi7NI8VkUZ 7VuPboxJamTBQtxaptB7NVsvoYOxJEUDvgdjYXSqttJtTbocHqlo1mv4Z8m5vdyfApXR rCiGKm64ReKTN5ijtMsO84RG4guTU0qWrxgcLvpcUyO32U/30L6qCFiN6f81uGcmLgvT 9rOX0MBGOUgk0tnAcNtQuEQU4gs8v17Qs5w6Swvpgt2spwSEJVUzzsnc7DnSXUuyn3OS rnhg+rDtEVovfXVlPeLI0Fv3m6oay7Ug/Rk83xNvXPSPwEzXoboYNELlCW4iViugHwFq rHiw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; 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" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6b04f632238si41975746d6.9.2024.06.07.15.59.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Jun 2024 15:59:56 -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; 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" Received: from [::1] (helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sFf2G-00015a-7V; Fri, 07 Jun 2024 15:14:00 -0400 Received: from [2001:470:142:3::10] (helo=eggs.gnu.org) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sFf28-00014V-Rw; Fri, 07 Jun 2024 15:13:52 -0400 Received: from isrv.corpit.ru ([86.62.121.231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sFf25-0001nk-Qq; Fri, 07 Jun 2024 15:13:52 -0400 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id D7BEF6E542; Fri, 7 Jun 2024 22:14:03 +0300 (MSK) Received: from tls.msk.ru (mjt.wg.tls.msk.ru [192.168.177.130]) by tsrv.corpit.ru (Postfix) with SMTP id 1C166E273F; Fri, 7 Jun 2024 22:13:09 +0300 (MSK) Received: (nullmailer pid 528706 invoked by uid 1000); Fri, 07 Jun 2024 19:13:08 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Cc: qemu-stable@nongnu.org, Marcin Juszkiewicz , Richard Henderson , Peter Maydell , Michael Tokarev Subject: [Stable-8.2.5 26/45] target/arm: Disable SVE extensions when SVE is disabled Date: Fri, 7 Jun 2024 22:12:45 +0300 Message-Id: <20240607191307.528622-6-mjt@tls.msk.ru> X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 Received-SPF: pass client-ip=86.62.121.231; envelope-from=mjt@tls.msk.ru; helo=isrv.corpit.ru X-Spam_score_int: -68 X-Spam_score: -6.9 X-Spam_bar: ------ X-Spam_report: (-6.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 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 Signed-off-by: Marcin Juszkiewicz Message-id: 20240526204551.553282-1-richard.henderson@linaro.org Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell (cherry picked from commit daf9748ac002ec35258e5986b6257961fd04b565) Signed-off-by: Michael Tokarev diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c index 1e9c6c85ae..81d93e56db 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 = 0; return; }