arm-hyp: read inactive cntv_ctl from saved context

Like SCTLR, CNTV_CTL is switched to/from hardware when we enable/disable
the VCPU, so it must be read from a saved VCPU context when that VCPU
isn't active.

Signed-off-by: Nick Spinale <nick@nickspinale.com>
This commit is contained in:
Nick Spinale 2020-02-27 16:38:11 +00:00 committed by Gerwin Klein
parent 6477781221
commit 7bb2717e41

View file

@ -664,6 +664,7 @@ static inline bool_t vcpu_reg_saved_when_disabled(word_t field)
{
switch (field) {
case seL4_VCPUReg_SCTLR:
case seL4_VCPUReg_CNTV_CTL:
#ifdef CONFIG_HAVE_FPU
case seL4_VCPUReg_CPACR:
#endif