arch-arm: Fix CNTFRQ_EL0 permission bits
authorAdrian Herrera <adrian.herrera@arm.com>
Fri, 14 Feb 2020 09:18:08 +0000 (09:18 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Wed, 19 Feb 2020 09:40:24 +0000 (09:40 +0000)
commit068ded195c1656b7b5e2b53efc9722ba0bc0d463
tree0cd8612a2ab6569e1ef6ee76188b60eafdc817ca
parent8fb933841ff17d91231342f4b56f11bee6e08b09
arch-arm: Fix CNTFRQ_EL0 permission bits

The register is marked as being writable at EL3 only (mon).  However the
arm arm states the register is accessible at the highest implemented EL.
Which means that if EL1 is the highest EL, EL1 code should be able to
modify the register value.

Change-Id: If9884fa2232869c043c96eba320e3c69efbab517
Reviewed-by: Richard Cooper <richard.cooper@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25428
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/arm/miscregs.cc