]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm: Trap PMCR when MDCR_EL2.TPMCR is set
authorSmail AIDER <smail.aider@huawei.com>
Tue, 26 Aug 2025 10:21:28 +0000 (11:21 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Sat, 30 Aug 2025 15:37:22 +0000 (16:37 +0100)
commit186db6a73bc5c01026bb9f4f4a59e442c0156841
tree3ddc54f033385218e68a30c2d1237ae7c4de122a
parent376cdd7e9c94f1e03b2c58e068e8ebfe78b49514
target/arm: Trap PMCR when MDCR_EL2.TPMCR is set

Trap PMCR_EL0 or PMCR accesses to EL2 when MDCR_EL2.TPMCR is set.
Similar to MDCR_EL2.TPM, MDCR_EL2.TPMCR allows trapping EL0 and EL1
accesses to the PMCR register to EL2.

Cc: qemu-stable@nongnu.org
Signed-off-by: Smail AIDER <smail.aider@huawei.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20250811112143.1577055-2-smail.aider@huawei.com
Message-Id: <20250722131925.2119169-1-smail.aider@huawei.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/cpregs-pmu.c