From patchwork Sat Nov 9 12:07:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 842085 Delivered-To: patch@linaro.org Received: by 2002:a5d:6307:0:b0:381:e71e:8f7b with SMTP id i7csp2113699wru; Sat, 9 Nov 2024 04:09:42 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUwCd2Xducqn31vzU/dU0nqLhfNi/HT9YyFv+nr9U5g2fFl82xw9nojVzZpfdOKoQnWDnhZeA==@linaro.org X-Google-Smtp-Source: AGHT+IEfntwmmfLYYtgA6+JcrDSRf30tbaF+pmFvzZih1GuAIxXiIC1xJ8nnHVMpWmlrCBZTMIs0 X-Received: by 2002:a05:620a:4728:b0:7ac:b1b1:e730 with SMTP id af79cd13be357-7b331f3108emr724643385a.61.1731154182689; Sat, 09 Nov 2024 04:09:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731154182; cv=none; d=google.com; s=arc-20240605; b=EJw7hgD0lkKNDwoE7W1/aERvhhjzMIvN+PP9sBgPFqnj1MdUP1tsDRAXPAMBjqO7JX Z/QsMHt58qbwOXYe8NfqDVZl5WEHI/0kiMePvimyLjMP74p2gAW3XREx+45A0TFvcT82 Mz3mPKwuzIikiNUtBgVtbab1LZCxEQ4dU+OJCvvRSxcMxt4yJyOvRdgaI/fp9dLJd3jw +bBQzFkNh5WHHh1wTElHTwsriM00RVa3dS8jFZSStC5i4wee76Bklx4dD1cWS5EQggsK Pf4wZ5D8tjI3P6tN+cQ5CNm1OAN+iwAW5nZha9ZMmdzbpFLYmpZ01EduYFOqgwMB7cg9 WmTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=29kwM05Z77eDTQKzKpRvh5hWZ4jZe7eHsUA4hs+GQlg=; fh=a0EThkoET2zX5h0F1tWE+vzAO6qNrt0J8z9IjVZ9J14=; b=E85078ntvuWdf1JjmrRicJTh2vRGJM2ngOQligE4p7tNHQUNkdDADVHawcrdwBK6Jh iniX1riPGvHuGycxU9fqBOh3T7tegdfXO74KepUMCzbscYakfuuNqnSm4i/bQzfbFnPV tbvCIZh+BaatYYTpkkuFNqfAlfytsqCOSlABxoXAtn4U5JJLeNpBJS/UEZXARf55o/G6 lunOkO8R/K16nMpB4nGE1k5UqrmIUp4avAUeWcK4tvZ5XOLwLDzgM6N0FrueUwjvPRSK uT9oW0ccPrwSHbcsc1ylcqZ5S9+W772FFDyx/Ua/Tjw9b9SGszPOzRtLo5w5gWqiBETX o7yA==; 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 af79cd13be357-7b32acba6dasi620627885a.305.2024.11.09.04.09.42 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 09 Nov 2024 04:09:42 -0800 (PST) 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 localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t9kGK-0008AO-HT; Sat, 09 Nov 2024 07:08:21 -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 1t9kGC-00085D-G4; Sat, 09 Nov 2024 07:08:12 -0500 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 1t9kGA-0003bL-QC; Sat, 09 Nov 2024 07:08:12 -0500 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id AAF7DA15EA; Sat, 9 Nov 2024 15:07:06 +0300 (MSK) Received: from tls.msk.ru (mjt.wg.tls.msk.ru [192.168.177.130]) by tsrv.corpit.ru (Postfix) with SMTP id 70976167F78; Sat, 9 Nov 2024 15:08:01 +0300 (MSK) Received: (nullmailer pid 3295255 invoked by uid 1000); Sat, 09 Nov 2024 12:08:01 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Cc: qemu-stable@nongnu.org, Peter Maydell , Marcin Juszkiewicz , Richard Henderson , Michael Tokarev Subject: [Stable-9.0.4 02/57] target/arm: Correct ID_AA64ISAR1_EL1 value for neoverse-v1 Date: Sat, 9 Nov 2024 15:07:04 +0300 Message-Id: <20241109120801.3295120-2-mjt@tls.msk.ru> X-Mailer: git-send-email 2.39.5 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, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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: 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: Peter Maydell The Neoverse-V1 TRM is a bit confused about the layout of the ID_AA64ISAR1_EL1 register, and so its table 3-6 has the wrong value for this ID register. Trust instead section 3.2.74's list of which fields are set. This means that we stop incorrectly reporting FEAT_XS as present, and now report the presence of FEAT_BF16. Cc: qemu-stable@nongnu.org Reported-by: Marcin Juszkiewicz Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson Message-id: 20240917161337.3012188-1-peter.maydell@linaro.org (cherry picked from commit 8676007eff04bb4e454bcdf92fab3f855bcc59b3) Signed-off-by: Michael Tokarev diff --git a/target/arm/tcg/cpu64.c b/target/arm/tcg/cpu64.c index 9f7a9f3d2c..de7a147557 100644 --- a/target/arm/tcg/cpu64.c +++ b/target/arm/tcg/cpu64.c @@ -678,7 +678,7 @@ static void aarch64_neoverse_v1_initfn(Object *obj) cpu->isar.id_aa64dfr0 = 0x000001f210305519ull; cpu->isar.id_aa64dfr1 = 0x00000000; cpu->isar.id_aa64isar0 = 0x1011111110212120ull; /* with FEAT_RNG */ - cpu->isar.id_aa64isar1 = 0x0111000001211032ull; + cpu->isar.id_aa64isar1 = 0x0011100001211032ull; cpu->isar.id_aa64mmfr0 = 0x0000000000101125ull; cpu->isar.id_aa64mmfr1 = 0x0000000010212122ull; cpu->isar.id_aa64mmfr2 = 0x0220011102101011ull;