target-arm: Implement MDCR_EL3.TPM and MDCR_EL2.TPM traps
commit1fce1ba985d9c5c96e5b9709e1356d1814b8fa9e
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 19 Feb 2016 14:39:44 +0000 (19 14:39 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 26 Feb 2016 15:09:42 +0000 (26 15:09 +0000)
tree93b6a4ad9bc0ae56aafdc61cdbb3d3af1623f42c
parenta8d64e735182cbbb5dcc98f41656b118c45e57cc
target-arm: Implement MDCR_EL3.TPM and MDCR_EL2.TPM traps

Implement the performance monitor register traps controlled
by MDCR_EL3.TPM and MDCR_EL2.TPM. Most of the performance
registers already have an access function to deal with the
user-enable bit, and the TPM checks can be added there. We
also need a new access function which only implements the
TPM checks for use by the few not-EL0-accessible registers
and by PMUSERENR_EL0 (which is always EL0-readable).

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1455892784-11328-3-git-send-email-peter.maydell@linaro.org
Reviewed-by: Sergey Fedorov <serge.fdrv@gmail.com>
Acked-by: Alistair Francis <alistair.francis@xilinx.com>
target-arm/helper.c