target/arm: support reading of CNT[VCT|FRQ]_EL0 from user-space
commit26c4a83bd4707797868174332a540f7d61288d15
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 29 Jun 2018 14:11:16 +0000 (29 15:11 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 29 Jun 2018 14:11:16 +0000 (29 15:11 +0100)
treeb58d390d3508f67288cc3370a893e97ce532425c
parent26c470a7bb4233454137de1062341ad48947f252
target/arm: support reading of CNT[VCT|FRQ]_EL0 from user-space

Since kernel commit a86bd139f2 (arm64: arch_timer: Enable CNTVCT_EL0
trap..), released in kernel version v4.12, user-space has been able
to read these system registers. As we can't use QEMUTimer's in
linux-user mode we just directly call cpu_get_clock().

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20180625160009.17437-2-alex.bennee@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c