arm: Fix incorrect handling of PMEVTYPERx_EL0 in PMU
authorAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 2 May 2017 16:26:34 +0000 (17:26 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Wed, 24 May 2017 16:25:33 +0000 (16:25 +0000)
commit3f835d88a337c74869393b76ef3c398c324754cc
tree3ffe611c4d998e6b17f335bf030b98ade1da6b81
parent642818f1f39dd73e478f136d0306989f33d3ad8f
arm: Fix incorrect handling of PMEVTYPERx_EL0 in PMU

The PMU model currently doesn't calculate the PMU event counter index
correctly for writes to the PMEVTYPER[0-5]_EL0 registers. Fix this
obvious mistake.

Change-Id: I2913eedddeb98480660e2d63948f6d727adf5ab8
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Sudhanshu Jha <sudhanshu.jha@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/3121
Reviewed-by: Curtis Dunham <curtis.dunham@arm.com>
src/arch/arm/pmu.cc