Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C7EB7606A322 for ; Thu, 3 Dec 2026 17:12:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=U6WVCVcF Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xZAM6-0000in-7P; Thu, 03 Dec 2026 12:12:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xZAL9-0008C3-Nu for qemu-arm@nongnu.org; Thu, 03 Dec 2026 12:11:29 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xZAL5-0006h6-AV for qemu-arm@nongnu.org; Thu, 03 Dec 2026 12:11:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796317883; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eFSCY3b6noiEYd24dBbtxFsTyUELRP5C7xTmmaOvYhM=; b=U6WVCVcFZWGa9azhdY9hP3Bero0t+Otn9+fRZrD7UxBlJaNGgumyeaWWWlweFEzgwEC4Tm 4V0M+07v/dFA02M9wQ/WeEPnXW5IFhCp8hlFqTPx9FyqmHZZcA4E6TuEyg9DjTfefsoV/Y waBum5CzDAxjXUxWq9PDFmslded6X3Q= X-MC-Rep: binary re single Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-111-XIxApWi1NpC6wqn8Z_xtUQ-1; Thu, 3 Dec 2026 17:11:16 +0000 X-MC-Unique: XIxApWi1NpC6wqn8Z_xtUQ-1 X-Mimecast-MFC-AGG-ID: XIxApWi1NpC6wqn8Z_xtUQ_1796317874 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 682BC18A9C76; Thu, 3 Dec 2026 17:11:00 +0000 (UTC) Received: from eauger-thinkpadp1gen8.rmtfr.csb (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 0A5111955F7D; Thu, 3 Dec 2026 17:10:56 +0000 (UTC) From: Eric Auger To: eric.auger.pro@gmail.com, eric.auger@redhat.com, qemu-devel@nongnu.org, qemu-arm@nongnu.org, peter.maydell@linaro.org, shaju.abraham@nutanix.com, khushit.shah@nutanix.com, richard.henderson@linaro.org, pbonzini@redhat.com, skolothumtho@nvidia.com, philmd@oss.qualcomm.com Cc: armbru@redhat.com, mbawa@redhat.com, cohuck@redhat.com Subject: [PATCH v11 06/20] target/arm/cpu-features.h: Remove SEBEP and TME Date: Thu, 3 Dec 2026 18:08:55 +0100 Message-ID: <20261203171020.2594683-7-eric.auger@redhat.com> In-Reply-To: <20261203171020.2594683-1-eric.auger@redhat.com> References: <20261203171020.2594683-1-eric.auger@redhat.com> X-Archived-By: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-Mimecast-MFC-PROC-ID: U2Ok9m0TQ6Y7-jdTbch6DntjW9H_dsEEd0Df3_vhQgE_1796317874 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true Received-SPF: pass client-ip=170.10.129.124; envelope-from=eric.auger@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 3 X-Spam_score: 0.3 X-Spam_bar: / X-Spam_report: (0.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.24, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 FEAT_TME (Transactional Memory Extension) and FEAT_SEBEP (Synchronous Exception-based Event Profiling) are both withdraw architecture features. They are not permitted to be included in any version of the architecture. So let's remove them. Those fields are now RES0. Signed-off-by: Eric Auger --- This was found by inspecting the differences between the field descriptions in target/arm/cpu-features.h versus those in generated target/arm/cpu-idregs.h.inc. Other differences are: - CCSIDR_EL1: cpu-features.h describes both layouts, with and without FEAT_CCIDX while cpu-idregs.h.inc only describes the layout with FEAT_CCIDX, ie. the 64b version of CCSIDR_EL1 - only in cpu-features.h: debug AArch32 DBGDEVID, DBGDEVID1, DBGDIDR - only in cpu-idregs.h.inc: CCSIDR2, DCZID, GMID, MPIDR, ID_AA64DFR1/2, ... - Some field names differ: capital letter and also specifically 3 fields have different names: - ID_AA64ZFR0(_EL1): BFLOAT16 (cpu-features.h) vs BF16 in cpu-idregs.h.inc - MVFR1(_EL1): MVE (M-profile only) vs SIMDLS in cpu-idregs.h.inc - MVFR1(_EL1): FP16 (M-profile only) vs SIMDHP For those cpu-idregs.h.inc naming seem to be the good ones listed in 2026-09 spec --- target/arm/cpu-features.h | 2 -- target/arm/cpu.h | 5 ----- 2 files changed, 7 deletions(-) diff --git a/target/arm/cpu-features.h b/target/arm/cpu-features.h index b0edec2837..6f3c972d98 100644 --- a/target/arm/cpu-features.h +++ b/target/arm/cpu-features.h @@ -200,7 +200,6 @@ FIELD(ID_AA64ISAR0, SHA1, 8, 4) FIELD(ID_AA64ISAR0, SHA2, 12, 4) FIELD(ID_AA64ISAR0, CRC32, 16, 4) FIELD(ID_AA64ISAR0, ATOMIC, 20, 4) -FIELD(ID_AA64ISAR0, TME, 24, 4) FIELD(ID_AA64ISAR0, RDM, 28, 4) FIELD(ID_AA64ISAR0, SHA3, 32, 4) FIELD(ID_AA64ISAR0, SM3, 36, 4) @@ -374,7 +373,6 @@ FIELD(ID_AA64DFR0, PMUVER, 8, 4) FIELD(ID_AA64DFR0, BRPS, 12, 4) FIELD(ID_AA64DFR0, PMSS, 16, 4) FIELD(ID_AA64DFR0, WRPS, 20, 4) -FIELD(ID_AA64DFR0, SEBEP, 24, 4) FIELD(ID_AA64DFR0, CTX_CMPS, 28, 4) FIELD(ID_AA64DFR0, PMSVER, 32, 4) FIELD(ID_AA64DFR0, DOUBLELOCK, 36, 4) diff --git a/target/arm/cpu.h b/target/arm/cpu.h index b2f393f501..9dc09f5637 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -1511,10 +1511,6 @@ void pmu_init(ARMCPU *cpu); #define SCTLR_DSSBS_64 (1ULL << 44) /* v8.5, AArch64 only */ #define SCTLR_TWEDEn (1ULL << 45) /* FEAT_TWED */ #define SCTLR_TWEDEL MAKE_64_MASK(46, 4) /* FEAT_TWED */ -#define SCTLR_TMT0 (1ULL << 50) /* FEAT_TME */ -#define SCTLR_TMT (1ULL << 51) /* FEAT_TME */ -#define SCTLR_TME0 (1ULL << 52) /* FEAT_TME */ -#define SCTLR_TME (1ULL << 53) /* FEAT_TME */ #define SCTLR_EnASR (1ULL << 54) /* FEAT_LS64_V */ #define SCTLR_EnAS0 (1ULL << 55) /* FEAT_LS64_ACCDATA */ #define SCTLR_EnALS (1ULL << 56) /* FEAT_LS64 */ @@ -1828,7 +1824,6 @@ static inline void xpsr_write(CPUARMState *env, uint32_t val, uint32_t mask) #define SCR_ECVEN (1ULL << 28) #define SCR_TWEDEN (1ULL << 29) #define SCR_TWEDEL MAKE_64BIT_MASK(30, 4) -#define SCR_TME (1ULL << 34) #define SCR_AMVOFFEN (1ULL << 35) #define SCR_ENAS0 (1ULL << 36) #define SCR_ADEN (1ULL << 37) -- 2.56.1