From mboxrd@z Thu Jan 1 00:00:00 1970 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 F0055606A322 for ; Fri, 4 Dec 2026 06:10:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=NaZ0szag Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xZMUa-0005Rs-Rs; Fri, 04 Dec 2026 01:10:02 -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 1xZMUY-0005RT-KU for qemu-arm@nongnu.org; Fri, 04 Dec 2026 01:09:58 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xZMUV-0007W9-Vi for qemu-arm@nongnu.org; Fri, 04 Dec 2026 01:09:57 -0500 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-4bb85e07aadso5763155e9.1 for ; Thu, 03 Dec 2026 22:09:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1796364594; x=1796969394; darn=nongnu.org; h=content-type:content-transfer-encoding:mime-version:message-id :in-reply-to:references:user-agent:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to:content-type; bh=nAqLMX0PiWT1L0UpZaY8qF0IPBSxkgCIZIoBf0fVbjY=; b=NaZ0szagHYxv9r099j/aFCf9CHEghmwYgxccoLYif0KS8uMSheSJubjDjY59EdwCmY A5ZGr6R2Pim53z8Q0dIvltsVoOGxlroN5hZ6e0Sr3k0CPDJe/5imSVyUiNZbribVL7pE 1ycM5J3rFaMALSG1MqH7tKskHMD2Z2CQ0gmqPLXHpFi33RjZrMOOgfxpNc6I1HdeRDzE XkaYuKwO9plnhpDovT8MTNkLNUmZUd61Tnq/raWDHeOtbaMDWSfzpqmzwTLrO/r+6PH8 Tkt0zTICOk9pNbWfkRdQZ8XWxSYyHmPxZJkcY4Tcl9QsQi6MTbIQMt8pGhpWfr9CCtY9 zZ+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796364594; x=1796969394; h=content-type:content-transfer-encoding:mime-version:message-id :in-reply-to:references:user-agent:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=nAqLMX0PiWT1L0UpZaY8qF0IPBSxkgCIZIoBf0fVbjY=; b=luA3cqodQPYB0MuLbe8TK9srl9UHrvOR/9AspWAjEPzncpHlTgLaHEI4pjlJdIRTPL R6lsqX89+IN40gorY1ML8Cebm8Z7SGx/cHBPuJ/vLKPs5dhGgqEpuvDTbpFROmLQpX9Z 6R6/kmqg/nOL495NemD0V10x5+MAT22DOO/gNyF6CgEkf1h5OEjX3bsIf/5KorSc5Sn+ m30fA1tYEwo2JrYAGRYHRtvLFKPj9LPy8nxnQ4Bw2Eie2lhbmZ3i4VEClTE/mJIhBtC2 Y/tPw686ToqrMeOmnJT/U2EbVKmRtnqSgobjI3ePUpI9NY7mu+qjNtwBSyjSUs+o5BO8 jq1Q== X-Forwarded-Encrypted: i=1; AL+hErHx614/yEvoFgYngXC2IQIGRZ849E3IsDz0C08Wmz7FCEsZN6CFuIEpctdIb9MafCAwR4VskzGEzA==@nongnu.org X-Gm-Message-State: APuU4Z96RvQzhtVzziII2VBbNqIZ/B5tsAY1rolxPODgz7kfWwzwAI0+ upalJADtmxa43UXNsuaGaaWgaHHz3UMOytoeGr1n1XGLRF+luWFc8co5g/TJ4lw8mMM= X-Gm-Gg: AZFdTZeuo5tIzKtow4p9DYBZIek8VdcYvm3kJU5egOkbAbo5fhhIup29/tza6UTeMw6 hdbpp9AiztadhgU8MP4WUjGYFpXJjKNAxyp9l+3OHHKYGNvVJo5L1GZIr0EEMbodO9gzO7V2RMJ t/GHunZjBJJBKLgdaakAaTL5moWnik93nH+W/uu8keylKkjzzszX2u25qYMyGkxSrUjADnLdxqa 4QkWSabHKvrAGtb8P4wj5zx7noH7j3R2axWfpBB/5PXw0nllVsQxknGtHAYjZX+dOSkAj8BbDf+ M490xUuL2p3PPro0e7Ik+X9ttuOBEa+cyrLrEflVgfWEwivgCzMdC4gzV/1fXI/0sSRcS4xYFbo bh1T8F3ojUkQMm1KCYCd1t1c/WvIYolk1bUYuHHziere1R5j5OUL/iE3dbScIkYuwOL2JYj0JGE ZSw5k6f4wII8sAP3Rwf9AnC8xk7w3JAM3+tBhQ6GKIyeprGvtbNSXti0lrf998IWPKKxEaoVOvN 0gTYZ+7A7EgXXeA4TQoYyEm6IVMWduQ7WvEvIz5GxUDDOAjfxTm9OL1xHLVFJHxJL6zijuTz+Dt IK+G79m9LrWJLnnuS9BVmoktIvin3yI4QoRA/YOgggLpl7LmvxhtJ6ZdT/2vdDq/ibowm0Oy/4l +lEpJLxIhmKLF8UiGKdSOBMs9WCKrnGyUsKcahAxEhmpQsGbbN21BzkB9gaCdXNArrssFVPcJqx jkv4cxRsuN6sU2H5z/q4IUHUv7tT4VpRSiKtEr/BNOi8apksIogMLA/liujugX0nmKh4Uj X-Received: by 2002:a05:600c:3ac5:b0:4a3:59c9:a747 with SMTP id 5b1f17b1804b1-4bbeb87c01fmr14034465e9.17.1796364593969; Thu, 03 Dec 2026 22:09:53 -0800 (PST) Received: from meli-email.org (athedsl-4431069.home.otenet.gr. [79.129.140.205]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bbe06edeb7sm213140705e9.11.2026.12.03.22.09.53 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Dec 2026 22:09:53 -0800 (PST) Date: Fri, 04 Dec 2026 08:08:31 +0200 From: Manos Pitsidianakis To: Peter Maydell , qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: Philippe Mathieu-Daud=?UTF-8?B?w6k=?= , Manos Pitsidianakis Subject: Re: [PATCH v2 10/77] target/arm: GICv5 cpuif: Mark GIC registers for fine-grained traps User-Agent: meli/0.9.0 References: <20261203111118.1380524-1-peter.maydell@linaro.org> <20261203111118.1380524-11-peter.maydell@linaro.org> In-Reply-To: <20261203111118.1380524-11-peter.maydell@linaro.org> Message-ID: X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8"; format=flowed Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=manos.pitsidianakis@linaro.org; helo=mail-wm1-x331.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-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=-16.0 required=3.0 tests=BAYES_00,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 On Thu, 03 Dec 2026 13:10, Peter Maydell wrote: >Annotate the GICv5 cpuif register cpreg structs with the >fine-grained trap information. This covers all the bits in >ICH_HFGRTR_EL2 and ICH_HFGWTR_EL2. > >Signed-off-by: Peter Maydell >--- Reviewed-by: Manos Pitsidianakis > target/arm/tcg/gicv5-cpuif.c | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > >diff --git a/target/arm/tcg/gicv5-cpuif.c b/target/arm/tcg/gicv5-cpuif.c >index 7ce3a2cc49a..b636a8fa6b9 100644 >--- a/target/arm/tcg/gicv5-cpuif.c >+++ b/target/arm/tcg/gicv5-cpuif.c >@@ -855,17 +855,20 @@ static const ARMCPRegInfo gicv5_cpuif_reginfo[] = { > { .name = "ICC_IDR0_EL1", .state = ARM_CP_STATE_AA64, > .opc0 = 3, .opc1 = 0, .crn = 12, .crm = 10, .opc2 = 2, > .access = PL1_R, .type = ARM_CP_CONST | ARM_CP_NO_RAW, >+ .fgt = FGT_ICC_IDRN_EL1, > .resetvalue = QEMU_ICC_IDR0, > }, > { .name = "ICC_ICSR_EL1", .state = ARM_CP_STATE_AA64, > .opc0 = 3, .opc1 = 0, .crn = 12, .crm = 10, .opc2 = 4, > .access = PL1_RW, .type = ARM_CP_NO_RAW, >+ .fgt = FGT_ICC_ICSR_EL1, > .fieldoffset = offsetof(CPUARMState, gicv5_cpuif.icc_icsr_el1), > .resetvalue = 0, > }, > { .name = "ICC_IAFFIDR_EL1", .state = ARM_CP_STATE_AA64, > .opc0 = 3, .opc1 = 0, .crn = 12, .crm = 10, .opc2 = 5, > .access = PL1_R, .type = ARM_CP_NO_RAW, >+ .fgt = FGT_ICC_IAFFIDR_EL1, > /* ICC_IAFFIDR_EL1 holds the IAFFID only, in its low bits */ > .fieldoffset = offsetof(CPUARMState, gicv5.iaffid), > /* >@@ -877,83 +880,97 @@ static const ARMCPRegInfo gicv5_cpuif_reginfo[] = { > { .name = "ICC_PPI_CACTIVER0_EL1", .state = ARM_CP_STATE_AA64, > .opc0 = 3, .opc1 = 0, .crn = 12, .crm = 13, .opc2 = 0, > .access = PL1_RW, .type = ARM_CP_ALIAS | ARM_CP_IO | ARM_CP_NO_RAW, >+ .fgt = FGT_ICC_PPI_ACTIVERN_EL1, > .fieldoffset = offsetof(CPUARMState, gicv5_cpuif.ppi_active[0]), > .writefn = gic_ppi_cactive_write, > }, > { .name = "ICC_PPI_CACTIVER1_EL1", .state = ARM_CP_STATE_AA64, > .opc0 = 3, .opc1 = 0, .crn = 12, .crm = 13, .opc2 = 1, > .access = PL1_RW, .type = ARM_CP_ALIAS | ARM_CP_IO | ARM_CP_NO_RAW, >+ .fgt = FGT_ICC_PPI_ACTIVERN_EL1, > .fieldoffset = offsetof(CPUARMState, gicv5_cpuif.ppi_active[1]), > .writefn = gic_ppi_cactive_write, > }, > { .name = "ICC_PPI_SACTIVER0_EL1", .state = ARM_CP_STATE_AA64, > .opc0 = 3, .opc1 = 0, .crn = 12, .crm = 13, .opc2 = 2, > .access = PL1_RW, .type = ARM_CP_IO | ARM_CP_NO_RAW, >+ .fgt = FGT_ICC_PPI_ACTIVERN_EL1, > .fieldoffset = offsetof(CPUARMState, gicv5_cpuif.ppi_active[0]), > .writefn = gic_ppi_sactive_write, > }, > { .name = "ICC_PPI_SACTIVER1_EL1", .state = ARM_CP_STATE_AA64, > .opc0 = 3, .opc1 = 0, .crn = 12, .crm = 13, .opc2 = 3, > .access = PL1_RW, .type = ARM_CP_IO | ARM_CP_NO_RAW, >+ .fgt = FGT_ICC_PPI_ACTIVERN_EL1, > .fieldoffset = offsetof(CPUARMState, gicv5_cpuif.ppi_active[1]), > .writefn = gic_ppi_sactive_write, > }, > { .name = "ICC_PPI_HMR0_EL1", .state = ARM_CP_STATE_AA64, > .opc0 = 3, .opc1 = 0, .crn = 12, .crm = 10, .opc2 = 0, > .access = PL1_R, .type = ARM_CP_IO | ARM_CP_NO_RAW, >+ .fgt = FGT_ICC_PPI_HMRN_EL1, > .fieldoffset = offsetof(CPUARMState, gicv5_cpuif.ppi_hm[0]), > .resetvalue = PPI_HMR0_RESET, > }, > { .name = "ICC_PPI_HMR1_EL1", .state = ARM_CP_STATE_AA64, > .opc0 = 3, .opc1 = 0, .crn = 12, .crm = 10, .opc2 = 1, > .access = PL1_R, .type = ARM_CP_IO | ARM_CP_NO_RAW, >+ .fgt = FGT_ICC_PPI_HMRN_EL1, > .fieldoffset = offsetof(CPUARMState, gicv5_cpuif.ppi_hm[1]), > .resetvalue = PPI_HMR1_RESET, > }, > { .name = "ICC_HPPIR_EL1", .state = ARM_CP_STATE_AA64, > .opc0 = 3, .opc1 = 0, .crn = 12, .crm = 10, .opc2 = 3, > .access = PL1_R, .type = ARM_CP_IO | ARM_CP_NO_RAW, >+ .fgt = FGT_ICC_HPPIR_EL1, > .readfn = gic_icc_hppir_el1_read, > }, > { .name = "ICC_PPI_ENABLER0_EL1", .state = ARM_CP_STATE_AA64, > .opc0 = 3, .opc1 = 0, .crn = 12, .crm = 10, .opc2 = 6, > .access = PL1_RW, .type = ARM_CP_IO | ARM_CP_NO_RAW, >+ .fgt = FGT_ICC_PPI_ENABLERN_EL1, > .fieldoffset = offsetof(CPUARMState, gicv5_cpuif.ppi_enable[0]), > .writefn = gic_ppi_enable_write, > }, > { .name = "ICC_PPI_ENABLER1_EL1", .state = ARM_CP_STATE_AA64, > .opc0 = 3, .opc1 = 0, .crn = 12, .crm = 10, .opc2 = 7, > .access = PL1_RW, .type = ARM_CP_IO | ARM_CP_NO_RAW, >+ .fgt = FGT_ICC_PPI_ENABLERN_EL1, > .fieldoffset = offsetof(CPUARMState, gicv5_cpuif.ppi_enable[1]), > .writefn = gic_ppi_enable_write, > }, > { .name = "ICC_PPI_CPENDR0_EL1", .state = ARM_CP_STATE_AA64, > .opc0 = 3, .opc1 = 0, .crn = 12, .crm = 13, .opc2 = 4, > .access = PL1_RW, .type = ARM_CP_ALIAS | ARM_CP_IO | ARM_CP_NO_RAW, >+ .fgt = FGT_ICC_PPI_PENDRN_EL1, > .fieldoffset = offsetof(CPUARMState, gicv5_cpuif.ppi_pend[0]), > .writefn = gic_ppi_cpend_write, > }, > { .name = "ICC_PPI_CPENDR1_EL1", .state = ARM_CP_STATE_AA64, > .opc0 = 3, .opc1 = 0, .crn = 12, .crm = 13, .opc2 = 5, > .access = PL1_RW, .type = ARM_CP_ALIAS | ARM_CP_IO | ARM_CP_NO_RAW, >+ .fgt = FGT_ICC_PPI_PENDRN_EL1, > .fieldoffset = offsetof(CPUARMState, gicv5_cpuif.ppi_pend[1]), > .writefn = gic_ppi_cpend_write, > }, > { .name = "ICC_PPI_SPENDR0_EL1", .state = ARM_CP_STATE_AA64, > .opc0 = 3, .opc1 = 0, .crn = 12, .crm = 13, .opc2 = 6, > .access = PL1_RW, .type = ARM_CP_IO | ARM_CP_NO_RAW, >+ .fgt = FGT_ICC_PPI_PENDRN_EL1, > .fieldoffset = offsetof(CPUARMState, gicv5_cpuif.ppi_pend[0]), > .writefn = gic_ppi_spend_write, > }, > { .name = "ICC_PPI_SPENDR1_EL1", .state = ARM_CP_STATE_AA64, > .opc0 = 3, .opc1 = 0, .crn = 12, .crm = 13, .opc2 = 7, > .access = PL1_RW, .type = ARM_CP_IO | ARM_CP_NO_RAW, >+ .fgt = FGT_ICC_PPI_PENDRN_EL1, > .fieldoffset = offsetof(CPUARMState, gicv5_cpuif.ppi_pend[1]), > .writefn = gic_ppi_spend_write, > }, > { .name = "ICC_APR_EL1", .state = ARM_CP_STATE_AA64, > .opc0 = 3, .opc1 = 1, .crn = 12, .crm = 0, .opc2 = 0, > .access = PL1_RW, .type = ARM_CP_IO | ARM_CP_NO_RAW, >+ .fgt = FGT_ICC_APR_EL1, > .readfn = gic_icc_apr_el1_read, > .writefn = gic_icc_apr_el1_write, > .resetfn = gic_icc_apr_el1_reset, >@@ -961,6 +978,7 @@ static const ARMCPRegInfo gicv5_cpuif_reginfo[] = { > { .name = "ICC_CR0_EL1", .state = ARM_CP_STATE_AA64, > .opc0 = 3, .opc1 = 1, .crn = 12, .crm = 0, .opc2 = 1, > .access = PL1_RW, .type = ARM_CP_IO | ARM_CP_NO_RAW, >+ .fgt = FGT_ICC_CR0_EL1, > .readfn = gic_icc_cr0_el1_read, > .writefn = gic_icc_cr0_el1_write, > .resetfn = gic_icc_cr0_el1_reset, >@@ -968,6 +986,7 @@ static const ARMCPRegInfo gicv5_cpuif_reginfo[] = { > { .name = "ICC_PCR_EL1", .state = ARM_CP_STATE_AA64, > .opc0 = 3, .opc1 = 1, .crn = 12, .crm = 0, .opc2 = 2, > .access = PL1_RW, .type = ARM_CP_IO | ARM_CP_NO_RAW, >+ .fgt = FGT_ICC_PCR_EL1, > .readfn = gic_icc_pcr_el1_read, > .writefn = gic_icc_pcr_el1_write, > .resetfn = gic_icc_pcr_el1_reset, >@@ -1102,6 +1121,7 @@ void define_gicv5_cpuif_regs(ARMCPU *cpu) > .opc0 = 3, .opc1 = 0, .crn = 12, > .crm = 14 + (i >> 3), .opc2 = i & 7, > .access = PL1_RW, .type = ARM_CP_IO | ARM_CP_NO_RAW, >+ .fgt = FGT_ICC_PPI_PRIORITYRN_EL1, > .fieldoffset = offsetof(CPUARMState, gicv5_cpuif.ppi_priority[i]), > .writefn = gic_ppi_priority_write, .raw_writefn = raw_write, > }; >-- >2.43.0 >