]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm: Don't apply CNTVOFF_EL2 for EL2_VIRT timer
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 7 Mar 2025 10:08:20 +0000 (10:08 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 7 Mar 2025 10:08:20 +0000 (10:08 +0000)
commit5709038aa8b4d58b8c201ed53c327074173a35c6
tree9a67d95d232153e1faa92c7048cfa9bf5a297814
parentdb6c2192839ee0282d38f6f6666a87e0629fcd13
target/arm: Don't apply CNTVOFF_EL2 for EL2_VIRT timer

The CNTVOFF_EL2 offset register should only be applied for accessses
to CNTVCT_EL0 and for the EL1 virtual timer (CNTV_*).  We were
incorrectly applying it for the EL2 virtual timer (CNTHV_*).

Cc: qemu-stable@nongnu.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 20250204125009.2281315-3-peter.maydell@linaro.org
target/arm/helper.c