]> git.proxmox.com Git - mirror_qemu.git/commit
target/arm: implement armv8 PMUSERENR (user-mode enable bits)
authorAndrew Baumann <Andrew.Baumann@microsoft.com>
Tue, 14 Mar 2017 11:28:54 +0000 (11:28 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 14 Mar 2017 11:28:54 +0000 (11:28 +0000)
commit6ecd0b6ba0591ef280ed984103924d4bdca5ac32
treeea13414813639fb2c050d0188ad70375592443f8
parent94b5d57d2f5a3c849cecd65e424bb6f50b998df9
target/arm: implement armv8 PMUSERENR (user-mode enable bits)

In armv8, this register implements more than a single bit, with
fine-grained enables for read access to event counters, cycles
counters, and write access to the software increment. This change
implements those checks using custom access functions for the relevant
registers.

Signed-off-by: Andrew Baumann <Andrew.Baumann@microsoft.com>
Message-id: 20170228215801.10472-2-Andrew.Baumann@microsoft.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
[PMM: move a couple of access functions to be only compiled
 ifndef CONFIG_USER_ONLY to avoid compiler warnings]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c