From nobody Tue Nov 26 16:48:13 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=1706025888; cv=none; d=zohomail.com; s=zohoarc; b=QulTqKQC17r/3T6CkGLhc4QqSohSTKMoG8gAt3YOCtMWB5FNBRAsm54IJC7MAxuZvtbDMVEP46xN1Ho9Uy7lZSTh9oboqxIwI2o2+kBtHMCjmyeDG1esqLDJ+cl71+dPUETpRUllIvR3+wJqWOwGqRza6gME3TRIdwdJaSpk3Mo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1706025888; 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=jTUUEUja40WbQS6wzJYDPCgMUCiS6GJwtB6HGzHkSGs=; b=jKbjTIjx617bzqvg5rGettBYdzI2v53akjSMgFluWoGLHpNw8GLcBpzD1V9/YBroYC6T9bZf1qfCvJgmY4UBAjROYlGb3tarjWShcsdQ52FsyFxf8OV0bSWEWIU+6KRkywlgc4SL12Dzkn82AV0+81LlJApSot4Uagu1pXvO6lg= 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 170602588833728.10626483457179; Tue, 23 Jan 2024 08:04:48 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rSJFW-0008Gt-BF; Tue, 23 Jan 2024 11:03:43 -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 1rSJFU-0008GQ-F8 for qemu-devel@nongnu.org; Tue, 23 Jan 2024 11:03:40 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rSJFQ-0004cg-2i for qemu-devel@nongnu.org; Tue, 23 Jan 2024 11:03:39 -0500 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-40eb033c192so12229575e9.0 for ; Tue, 23 Jan 2024 08:03:35 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id f13-20020a05600c4e8d00b0040eb6ce137asm2651539wmq.39.2024.01.23.08.03.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 08:03:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706025814; x=1706630614; 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=jTUUEUja40WbQS6wzJYDPCgMUCiS6GJwtB6HGzHkSGs=; b=c9RPmTpGldE8JL3AfanR+bxNnaEcRwp0X/T16FJsCPBOwO9t5TBiqz7xNMmHKcaa6T aa7npVhae417GYeJMxD8JWBMjQfPW4YREIu+AH+HkXctArsPyE4JhSeI0b1zY02kccoa VMhGAnkOa7suCYCzL4QUCLRpzt10saVWiC7zJz78zzzAk/GsbhZ+egDBT1mrGqMFtmB6 flyZYPsQ1sv8pmxjaYuwUGZS3Hj+tumzsYlSR4jGDWZtMykxAYJcoDA90Byxa7n5aA8Y fxjkA1uPH5sANnmSijG9mf9GVCrST0C1Zsab0okEiNoGimezD88owSN7JoWvM6DDnzPK SA2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706025814; x=1706630614; 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=jTUUEUja40WbQS6wzJYDPCgMUCiS6GJwtB6HGzHkSGs=; b=SYulwl79F6YFny+plE0KK6iN3rGM2IFhQbuyxDOEUVW6ko/mYVKQ0mlC5UC8tqk15C h/6INdO2ugaM31mBKRm+PImwAxzK63mvq35dZ/x1h8UCUg9Hu2tudBI6qnOyG86VBsuV 64DGexeR2DM6l9o7bV7PodHG6kkOaM5c9zRkKVkhS65zz3SUhloNuQoy7sopuyllGedI 2PhnVFevF7uHyWz9jkKWbyL1fmp6d6kKjuKiOLKh99EPG+mAmNM38D+So5yN2WjLhj3l POMDnh+rve1RDrlcfmMcduwES8R99vIHoSJPLycC5SHfAKAMgX/WgFtVYOgBokp1OB18 soXA== X-Gm-Message-State: AOJu0Yy+Uf3EBQCwXx8yxgFg9AyOAs4z0giET8VZRerlNg1KiGN/B8mJ JKnjjH67Gfd4P6dd1N3gRxloVT7gfB3ZVmMF/NFfXdYPf6ESx680CrE6DFpYOu8= X-Google-Smtp-Source: AGHT+IGF/q32cHIYvJzRB0JqPkPeToJpBr9fuVZhWQaHWupt+vmI9RhjjKEpFO0nWnHQOyGigjJ1tQ== X-Received: by 2002:a05:600c:1c23:b0:40e:4832:9fc3 with SMTP id j35-20020a05600c1c2300b0040e48329fc3mr299253wms.7.1706025814148; Tue, 23 Jan 2024 08:03:34 -0800 (PST) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: qemu-stable@nongnu.org Subject: [PATCH] target/arm: Fix incorrect aa64_tidcp1 feature check Date: Tue, 23 Jan 2024 16:03:33 +0000 Message-Id: <20240123160333.958841-1-peter.maydell@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=2a00:1450:4864:20::333; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x333.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: 1706025889719100003 Content-Type: text/plain; charset="utf-8" A typo in the implementation of isar_feature_aa64_tidcp1() means we were checking the field in the wrong ID register, so we might have provided the feature on CPUs that don't have it and not provided it on CPUs that should have it. Correct this bug. Cc: qemu-stable@nongnu.org Fixes: 9cd0c0dec97be9 "target/arm: Implement FEAT_TIDCP1" Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2120 Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target/arm/cpu-features.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/arm/cpu-features.h b/target/arm/cpu-features.h index 7a590c824cf..24525e36349 100644 --- a/target/arm/cpu-features.h +++ b/target/arm/cpu-features.h @@ -771,7 +771,7 @@ static inline bool isar_feature_aa64_hcx(const ARMISARe= gisters *id) =20 static inline bool isar_feature_aa64_tidcp1(const ARMISARegisters *id) { - return FIELD_EX64(id->id_aa64mmfr2, ID_AA64MMFR1, TIDCP1) !=3D 0; + return FIELD_EX64(id->id_aa64mmfr1, ID_AA64MMFR1, TIDCP1) !=3D 0; } =20 static inline bool isar_feature_aa64_hafs(const ARMISARegisters *id) --=20 2.34.1