TF-A AMU extension: fix detection of group 1 counters.
This patch fixes the bug when AMUv1 group1 counters was
always assumed being implemented without checking for its
presence which was causing exception otherwise.
The AMU extension code was also modified as listed below:
- Added detection of AMUv1 for ARMv8.6
- 'PLAT_AMU_GROUP1_NR_COUNTERS' build option is removed and
number of group1 counters 'AMU_GROUP1_NR_COUNTERS' is now
calculated based on 'AMU_GROUP1_COUNTERS_MASK' value
- Added bit fields definitions and access functions for
AMCFGR_EL0/AMCFGR and AMCGCR_EL0/AMCGCR registers
- Unification of amu.c Aarch64 and Aarch32 source files
- Bug fixes and TF-A coding style compliant changes.

Change-Id: I14e407be62c3026ebc674ec7045e240ccb71e1fb
Signed-off-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
1 parent 8ae3a91 commit f3ccf036ecb1ae16287817833ebb07a26dcc0230
@Alexei Fedorov Alexei Fedorov authored on 14 Jul 2020
Showing 9 changed files
View
docs/getting_started/porting-guide.rst
View
include/arch/aarch32/arch.h
View
include/arch/aarch32/arch_helpers.h
View
include/arch/aarch64/arch.h
View
include/arch/aarch64/arch_helpers.h
View
include/lib/extensions/amu.h
View
include/lib/extensions/amu_private.h
View
lib/extensions/amu/aarch32/amu.c
View
lib/extensions/amu/aarch64/amu.c