From nobody Tue Feb 10 11:12:41 2026 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=1660907365; cv=none; d=zohomail.com; s=zohoarc; b=QWFZCAFyiZ4UdH47/FKHH+puMYyDsxEzwFsclt8zVNOVlytLOGyTVil5CXUIMerJcBOWTtpwwNjQtj8vtkchObhY6TveVcs0Txi9v8m0Kh4hQb4iIj77SKevVx667hHtFVr2J9XL7nQBws55GpEFVaxd+3m0ZmJu34huNrjk1Ho= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1660907365; h=Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=D9s+L5yVb1BMeJ0aqDKJfJ1DqXUabclfNuvxPJ/OZKY=; b=hc9xjTRQqlxlUYgdooyRmMibcx9XHOvjLEojtxxBSfLhu/qquvy3sQZzB9Gd3Sry9XGGo2vW5i1Ff39ekkkCOEF2xaasX8hxA2n2reXgvjtH74nD1cEKqnPRCquG9AezUT8mwai/idHb+fJfG9Cs2Ztxpuhb/WgjjrV0nHdEQcw= 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 1660907365061484.0146005875589; Fri, 19 Aug 2022 04:09:25 -0700 (PDT) Received: from localhost ([::1]:49136 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oOzsQ-0005fG-Ql for importer@patchew.org; Fri, 19 Aug 2022 07:09:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOzkP-0002DZ-79 for qemu-devel@nongnu.org; Fri, 19 Aug 2022 07:01:07 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:38830) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oOzkJ-0001Qn-2H for qemu-devel@nongnu.org; Fri, 19 Aug 2022 07:01:04 -0400 Received: by mail-wm1-x334.google.com with SMTP id n23-20020a7bc5d7000000b003a62f19b453so850216wmk.3 for ; Fri, 19 Aug 2022 04:00:58 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id p22-20020a7bcc96000000b003a52969e89csm8154985wma.4.2022.08.19.04.00.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Aug 2022 04:00:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc; bh=D9s+L5yVb1BMeJ0aqDKJfJ1DqXUabclfNuvxPJ/OZKY=; b=PDe/8g05I8TMQT04pgN/A3wmwfrLSaX2mCBCyikdzy/VLmdQXSQ692hqL8mZGFD+j/ URsQFRh4qykhw5MY1f/yLskh75MaVqzUBF2hmgCLpnlBW3LpZzBcYsCixeGqEFfhjGqM G48VNHxADoG35DeSwqgIZns1yBz/5Aw+KXP1A0MvElnjW9+3BpOD16+Q7thYPoZHN9gA dMm5ezNSytaArVkgRT7SEVg50DabZk49DMMbUBPHI1yo7bEoCNZPmm3KmtcBx5zaiHVd /y+dC4YDKKSLCRLcDuJNae0nXvBf02l/9K2DREbNIS33N6FkUKPZNwXEXYtnL45Z0sqV 62FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc; bh=D9s+L5yVb1BMeJ0aqDKJfJ1DqXUabclfNuvxPJ/OZKY=; b=rVWs/h4bqQIz3uR7PfjZAfHjVo9JJFyWSi57Xkrf2r8p/KBo7G2er/5YDcmxtXrLPH SxsGVtBlZnEy+o1LAKOPIsiN76LwS8hRAg6gbMkQWGoWg7aqzsKhzXHpP7maPIErLcRb tmcXuUtoRwjJ4yFAOJjvMpbKRlWA5tlY4OQUajP83SJOHalYlLhv9nRkBhn/1c50bd2g tDFeQy5RLzbvKkX+isi/sx256qvMaSfvtZt6TCCwh0MV9WktSiS7plOpU0+6JxDbTtha SD+TWAW+TE5dSDj0f0kfRsAadWghuPCqh4KKhjj2fsi267VmDLSFc4Tw5FgMRqlK6Bnm GLxQ== X-Gm-Message-State: ACgBeo2khyAsl+OhyFH9hBLB5g3jh42L/5Z+X9/PM9i5NSw56RncWNZs 23F4uNUmQ0i7/pUQ3fgEfUJczQ== X-Google-Smtp-Source: AA6agR4giTHeR4W52KOkumwu6/FENRngcuH5fmPOScjHP90lhlF39PxC0TtrT/YMojmkgzxvKyq8gQ== X-Received: by 2002:a05:600c:490:b0:3a5:a6aa:bf2f with SMTP id d16-20020a05600c049000b003a5a6aabf2fmr7602020wme.17.1660906857521; Fri, 19 Aug 2022 04:00:57 -0700 (PDT) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Subject: [PATCH 4/6] target/arm: Implement ID_DFR1 Date: Fri, 19 Aug 2022 12:00:50 +0100 Message-Id: <20220819110052.2942289-5-peter.maydell@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220819110052.2942289-1-peter.maydell@linaro.org> References: <20220819110052.2942289-1-peter.maydell@linaro.org> 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::334; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x334.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=unavailable 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" X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1660907366659100001 Content-Type: text/plain; charset="utf-8" In Armv8.6, a new AArch32 ID register ID_DFR1 is defined; implement it. We don't have any CPUs with features that they need to advertise here yet, but plumbing in the ID register gives it the right name when debugging and will help in future when we do add a CPU that has non-zero ID_DFR1 fields. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target/arm/cpu.h | 1 + target/arm/helper.c | 4 ++-- target/arm/kvm64.c | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/target/arm/cpu.h b/target/arm/cpu.h index fcc5927587e..fa24ce9f96b 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -983,6 +983,7 @@ struct ArchCPU { uint32_t mvfr1; uint32_t mvfr2; uint32_t id_dfr0; + uint32_t id_dfr1; uint32_t dbgdidr; uint32_t dbgdevid; uint32_t dbgdevid1; diff --git a/target/arm/helper.c b/target/arm/helper.c index 07378519259..7ff03f1a4ba 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -7581,11 +7581,11 @@ void register_cp_regs_for_features(ARMCPU *cpu) .access =3D PL1_R, .type =3D ARM_CP_CONST, .accessfn =3D access_aa64_tid3, .resetvalue =3D cpu->isar.id_pfr2 }, - { .name =3D "RES_0_C0_C3_5", .state =3D ARM_CP_STATE_BOTH, + { .name =3D "ID_DFR1", .state =3D ARM_CP_STATE_BOTH, .opc0 =3D 3, .opc1 =3D 0, .crn =3D 0, .crm =3D 3, .opc2 =3D = 5, .access =3D PL1_R, .type =3D ARM_CP_CONST, .accessfn =3D access_aa64_tid3, - .resetvalue =3D 0 }, + .resetvalue =3D cpu->isar.id_dfr1 }, { .name =3D "ID_MMFR5", .state =3D ARM_CP_STATE_BOTH, .opc0 =3D 3, .opc1 =3D 0, .crn =3D 0, .crm =3D 3, .opc2 =3D = 6, .access =3D PL1_R, .type =3D ARM_CP_CONST, diff --git a/target/arm/kvm64.c b/target/arm/kvm64.c index 2d737c443eb..1197253d12f 100644 --- a/target/arm/kvm64.c +++ b/target/arm/kvm64.c @@ -643,6 +643,8 @@ bool kvm_arm_get_host_cpu_features(ARMHostCPUFeatures *= ahcf) ARM64_SYS_REG(3, 0, 0, 3, 2)); err |=3D read_sys_reg32(fdarray[2], &ahcf->isar.id_pfr2, ARM64_SYS_REG(3, 0, 0, 3, 4)); + err |=3D read_sys_reg32(fdarray[2], &ahcf->isar.id_dfr1, + ARM64_SYS_REG(3, 0, 0, 3, 5)); err |=3D read_sys_reg32(fdarray[2], &ahcf->isar.id_mmfr5, ARM64_SYS_REG(3, 0, 0, 3, 6)); =20 --=20 2.25.1