AMU: Add hooks to save/restore AMU context
authorDimitris Papastamos <dimitris.papastamos@arm.com>
Tue, 28 Nov 2017 13:47:06 +0000 (13:47 +0000)
committerDimitris Papastamos <dimitris.papastamos@arm.com>
Thu, 11 Jan 2018 14:36:45 +0000 (14:36 +0000)
commitb6eb39327c5b009bc0bbecdb6867d8bf7c05f2fd
tree9c92eaf9474d4db1397295349b2354bf4183c9a3
parent0767d50e699d3d9cb827172dd7742618d37aabe0
AMU: Add hooks to save/restore AMU context

On some systems, the AMU counters might reset to 0 when a CPU
powerdown happens.  This behaviour conflicts with the intended
use-case of AMU as lower ELs are only expected to see non-decreasing
counter values.

Change-Id: If25519965d4e6e47e09225d0e732947986cbb5ec
Signed-off-by: Dimitris Papastamos <dimitris.papastamos@arm.com>
include/lib/aarch32/arch_helpers.h
lib/extensions/amu/aarch32/amu.c
lib/extensions/amu/aarch64/amu.c