arch-arm: reg access permissions highest EL helper
authorAdrian Herrera <adrian.herrera@arm.com>
Wed, 6 Nov 2019 13:00:21 +0000 (13:00 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Tue, 4 Feb 2020 13:39:54 +0000 (13:39 +0000)
commit465f7d0f56fe47ad5070cc7fcc69bf69cb7d3d82
treee6434d38f7d7888a359931d937dfde4470d0d6a9
parent6cff0dd218941eabf2b9cf3a7ce6d641ea7884cb
arch-arm: reg access permissions highest EL helper

This patch implements a helper function to filter a register access
permissions by the highest EL implemented by the system.
This filtering is convenient to follow the architecture pseudocode.

Change-Id: Iedfb2d8624c926f2f0a9326f8b1b073ea9424ab9
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/24663
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.cc
src/arch/arm/isa.hh