arch-arm: AArch64 reg access HCR_EL2.E2H filter
authorAdrian Herrera <adrian.herrera@arm.com>
Thu, 7 Nov 2019 12:30:08 +0000 (12:30 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Tue, 4 Feb 2020 13:39:54 +0000 (13:39 +0000)
commit98b2d7acc57b664996de528e6d32ae8abaee2b99
tree21d2559d24dd6506bbfd29819115d1500f9b0b6a
parent465f7d0f56fe47ad5070cc7fcc69bf69cb7d3d82
arch-arm: AArch64 reg access HCR_EL2.E2H filter

Some AArch64 system registers report UNDEFINED behaviours if accessed
from EL2 or EL3 in a non-EL2 Host enabled (HCR_EL2.E2H == 0) environment.
Examples of these are seen in the Generic Timer system registers,
namely CNTP_CTL_EL02 or CNTKCTL_EL12.
This patch provides an ISA filter for specifying the above condition.

Change-Id: I240f9afdb000faf5d3c9274ba12bd4cc41fe8604
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/24664
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/arm/isa.hh
src/arch/arm/isa/insts/data64.isa
src/arch/arm/miscregs.cc
src/arch/arm/miscregs.hh