target-arm: Implement pmccntr_sync function
commitec7b4ce4c7864337a336721721d48456b4b5b51d
authorAlistair Francis <alistair.francis@xilinx.com>
Fri, 29 Aug 2014 14:00:29 +0000 (29 15:00 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 29 Aug 2014 14:00:29 +0000 (29 15:00 +0100)
tree26c82a0cf879258fafd58dcb5515a3d89a0c2f7b
parent87124fdea443322924be00eb79430a6243cf0747
target-arm: Implement pmccntr_sync function

This is used to synchronise the PMCCNTR counter and swap its
state between enabled and disabled if required. It must always
be called twice, both before and after any logic that could
change the state of the PMCCNTR counter.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Message-id: 62811d4c0f7b1384f7aab62ea2fcfda3dcb0db50.1409025949.git.peter.crosthwaite@xilinx.com
[PMM: fixed minor typos in pmccntr_sync doc comment]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/cpu.h
target-arm/helper.c