From patchwork Thu Sep 19 13:11:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 829613 Delivered-To: patch@linaro.org Received: by 2002:adf:ebcc:0:b0:367:895a:4699 with SMTP id v12csp318286wrn; Thu, 19 Sep 2024 06:15:50 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXO0Q0YYwe5+QzUEojNdsPPFmerFzKyTMf9v/czyW2WztTnH1prCDP14qxE0Xxi0WuhKAvF1A==@linaro.org X-Google-Smtp-Source: AGHT+IHwre+GCRVTyTtAWf6kn9+aaDOK+RUU+hh7ppSwddT8moy+Fx+kMGYdsiGL/ISLBXcXg4u1 X-Received: by 2002:a05:6122:468c:b0:4fd:116e:6f4f with SMTP id 71dfb90a1353d-5032d50abdemr24419638e0c.12.1726751750487; Thu, 19 Sep 2024 06:15:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726751750; cv=none; d=google.com; s=arc-20240605; b=hGhbdh5T4XJiCU+5UmVRwPPTq8SsYZ6SjwZR6G8aJjgKp2bIHM+JnSt4R+vBSr603X NfBEBQy8MDGaHTjifYn5bM1uKsmRWDkzh3T8jno9FG9api8dzYpuMX6x3VgGWP8cBUtc Bu+7odNQq0avxdAWiTa2IqL0xZU66BJT8fA+PYOyQe5rIJwwLRBBr4aW3klgFIA4uQYK EQ+F2MVncaLTdBfHN6db00EG/XLJJ5NiKHZpqWtvf19Phl2mB9Z+Issm8X9g5/gHXYEW aqQI4wigbkNUBQhz0kEzxcuPGFuFxO6NIzbZnpRY1WWpPMePflc8C0OicF8JwpOoby7d N1rg== 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:to:from :dkim-signature; bh=HkJpTrMUcMhqOQXaVK9JEJmDtKhFoBos/v7rYBsEpnY=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=Ea1qyHJ0pDmzIMU6S6UCKUG6DnxacZh+uBtoDcSFkzPclK7LFqChLCju5uWT0iyUdy YzD46Re94sVNSjK7f1epI7TNuimRk9KoWKdZzMX0iZ2KBJZvKCKyxO3H6eLNaclKxCnl dW4nJOXX++FL8i8eZJV3/DWCqoBcu9sy4AiiS5rk0F8BUsXC0od9XGzfLhbxs3uxHdYB lEt7A23KDoHW5uDHcdCgfJNFEwAotD9GXjQpx+ufEk4oZVkEG2jmoS9vLc6l/ux5u5DD zMqiBx5Tv8FBJgayBEDcOOqhLOHwAvSaTUd7rvHGL/LDZhOGEjJ403z0TVFc0+H59YJZ XBIQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kPSLVKSB; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 71dfb90a1353d-5035bc7d953si1529603e0c.228.2024.09.19.06.15.50 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Sep 2024 06:15:50 -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; dkim=pass header.i=@linaro.org header.s=google header.b=kPSLVKSB; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1srGwx-00077T-U9; Thu, 19 Sep 2024 09:12:00 -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 1srGwY-0005Ya-3u for qemu-devel@nongnu.org; Thu, 19 Sep 2024 09:11:36 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1srGwV-00015x-4l for qemu-devel@nongnu.org; Thu, 19 Sep 2024 09:11:33 -0400 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-42e5e758093so7261885e9.1 for ; Thu, 19 Sep 2024 06:11:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726751489; x=1727356289; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=HkJpTrMUcMhqOQXaVK9JEJmDtKhFoBos/v7rYBsEpnY=; b=kPSLVKSB2kNTDxUXtG2qIolkNmP1wQ16+NYzdGNg1TWD34LTKn6M8QmeIBYaGzqZOR 9fQi4FRBAlq/l0G25HBkP4Vagij5MTGBrgW+cp3fFgOT5Zy6dADzB3rT2QfzoMPTXSpd iEGva8KrNHYS/Vi9Z7zXFU2kzv0EEjNZCiW7VQRdFKK6+zPocTFzTplW7nyEOyaA8nxP uxe6SjinF8TeglWuqq+JDmXFxHWx9cjR1VLH9plC/QEPtjKyqsV1HlbGPrMXIOQEw7ua 19uiptsL8H+fL+KoBZ9kWbWd8EC15asapfCNVfyBxCTovKfPkV97rqpiIT+YbqP1x9x/ BCVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726751489; x=1727356289; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HkJpTrMUcMhqOQXaVK9JEJmDtKhFoBos/v7rYBsEpnY=; b=wrjl9CFC76RxvUBTmtoRVbu8reQYR7tVwKZ1xUEFvN3TVAOCJ8X6wreHqF9zggbll8 7FN8L00vnVHhX8NjTNFcDu6TkDE8WuAjoA0pkRhXXqanxWZLGl4l22rsQdZeRz0lRkFf 8VfFdpGetEs05moz0Io37JtKo/MngyY8yWs+ilkdVoG6mGoELpI7iNKPYw2PhtCRU4Yr N9LF/DOe1i+lz5GV7oBIv1YMRHtKyy8pqL2ta76snuOFajqEJ+D/M02sDBflZ4TbwLJT wTblfF7Wovm2HNf7QZ+LqpXCjxhHZ8kHRKNhmwQFaDIYttlrfu8/+beAciMm+By/ncPf vDdw== X-Gm-Message-State: AOJu0Yxxj/fRxh4xnBXgKATnT08SLKFzFkBy54eYOnUHG5+DLaB/xW3l udEHAJUaS5f11KRNdsapnInryihWsPSiFsgP4f16MZzJibU1Q9d/NDZDcaC00zOHecaYx7HV6aD v X-Received: by 2002:a05:600c:34c2:b0:42c:bad0:6c16 with SMTP id 5b1f17b1804b1-42d9070baa1mr145801465e9.2.1726751489462; Thu, 19 Sep 2024 06:11:29 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42e754091d3sm21667845e9.10.2024.09.19.06.11.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Sep 2024 06:11:29 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 37/38] target/arm: Correct ID_AA64ISAR1_EL1 value for neoverse-v1 Date: Thu, 19 Sep 2024 14:11:05 +0100 Message-Id: <20240919131106.3362543-38-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240919131106.3362543-1-peter.maydell@linaro.org> References: <20240919131106.3362543-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x32f.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: 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 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 --- target/arm/tcg/cpu64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/arm/tcg/cpu64.c b/target/arm/tcg/cpu64.c index b9f34f044d0..01689208286 100644 --- a/target/arm/tcg/cpu64.c +++ b/target/arm/tcg/cpu64.c @@ -677,7 +677,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;