diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2022-09-23 13:34:10 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2022-09-29 17:31:52 +0100 |
commit | 7f4fbfb5dc08fe3fb6829bde8e4072d6cb214931 (patch) | |
tree | 7153d12d5d8a688863fb9be60e3be3c63afe3c1d /include/crypto/tlscredspsk.h | |
parent | c8de6ec63d766ca1998c5af468483ce912fdc0c2 (diff) |
target/arm: Mark registers which call pmu_op_start() as ARM_CP_IO
In commit 01765386a888 we made some system register write functions
call pmu_op_start()/pmu_op_finish(). This means that they now touch
timers, so for icount to work these registers must have the ARM_CP_IO
flag set.
This fixes a bug where when icount is enabled a guest that touches
MDCR_EL3, MDCR_EL2, PMCNTENSET_EL0 or PMCNTENCLR_EL0 would cause
QEMU to print an error message and exit, for example:
[ 2.495971] TCP: Hash tables configured (established 1024 bind 1024)
[ 2.496213] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 2.496386] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 2.496917] NET: Registered protocol family 1
qemu-system-aarch64: Bad icount read
Reported-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220923123412.1214041-2-peter.maydell@linaro.org
Diffstat (limited to 'include/crypto/tlscredspsk.h')
0 files changed, 0 insertions, 0 deletions