arm: Implement PMCCNTR 32b read-modify-write
commit421c7ebd93d33a3276b78985b9e25cfea35692f0
authorPeter Crosthwaite <peter.crosthwaite@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)
treebc52e8042f0d042c93e0aa765b0410e24f90abc8
parentc92c06872a092eaba64ea7e56ceff762be48b093
arm: Implement PMCCNTR 32b read-modify-write

The register is now 64bit, however a 32 bit write to the register
should leave the higher bits unchanged. The open coded write handler
does not implement this, so we need to read-modify-write accordingly.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Reviewed-by: Alistair Francis <alistair23@gmail.com>
Message-id: ec350573424bb2adc1701c3b9278d26598e2f2d1.1409025949.git.peter.crosthwaite@xilinx.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/helper.c