Re: [Qemu-devel] [kvm-unit-tests PATCH 1/2] arm64: timer: add TVAL accessors

2018-07-17 Thread Andrew Jones
On Mon, Jul 16, 2018 at 04:14:37PM +0100, Andre Przywara wrote: > The ARM arch timer features the CVAL register, which holds an absolute > value that is compared against the counter value. > But there is also the TVAL register, which is defined as (CVAL - counter), > and can be used to program or

[Qemu-devel] [kvm-unit-tests PATCH 1/2] arm64: timer: add TVAL accessors

2018-07-16 Thread Andre Przywara
The ARM arch timer features the CVAL register, which holds an absolute value that is compared against the counter value. But there is also the TVAL register, which is defined as (CVAL - counter), and can be used to program or read relative timeouts. Add accessors for the TVAL register, to be able