arm: arch_timer: provide user space access to virtual counter

Software with sufficient privilege can read CNTVCT using a 64-bit
system control register read. CNTVCT is always accessible from
Secure PL1 modes, and from Non-secure PL1 and PL2 modes.
In addition, when CNTKCTL.PL0VCTEN is set to 1, CNTVCT is accessible
from PL0 modes. When CNTKCTL.PL0VCTEN is set to 0, any attempt to
access CNTVCT from a PL0 mode generates an Undefined Instruction exception.

Fix Undefined Instruction issue by enabling user access to virtual counter.

CRs-fixed: 737660
Change-Id: I8f3fde6cac445209feb3c21d791a3fd8fcd40f96
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
1 file changed