arch-arm: CNTHCTL trap to EL2 only if ARMv8.6-ECV implemented
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Mon, 30 Mar 2020 12:58:43 +0000 (13:58 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Mon, 6 Apr 2020 08:31:26 +0000 (08:31 +0000)
commit73dd2ee7a1fc837cda896b95b8a2e04dbcab02ee
tree65bde28265f14b6882333700453a2cc91e878f61
parentffad8a370aa29e69f4e8984e5daff76d22b06cce
arch-arm: CNTHCTL trap to EL2 only if ARMv8.6-ECV implemented

In condGenericTimerCommonEL1SystemAccessTrapEL2 we were trapping
accesses to the EL1 virtual timer/counter registers to EL2, not
considering that this feature is part of ARMv8.6-ECV only
(not supported at the moment)

Change-Id: Ic03bcae436a105fb139a74126881b665ee08c912
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Adrian Herrera <adrian.herrera@arm.com>
Reviewed-by: Richard Cooper <richard.cooper@arm.com>
Reviewed-by: Ciro Santilli <ciro.santilli@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27408
Tested-by: Gem5 Cloud Project GCB service account <345032938727@cloudbuild.gserviceaccount.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/arm/miscregs_types.hh
src/arch/arm/utility.cc