arch-arm: Fix initialization of PMU counters
authorRuben Ayrapetyan <ruben.ayrapetyan@arm.com>
Tue, 29 Jan 2019 19:19:51 +0000 (19:19 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Fri, 8 Feb 2019 09:41:25 +0000 (09:41 +0000)
commitc2b6aac2a8b2ee650a9c220daa6ef75635781f2a
tree68c988492d9f10061c8f1379f0bc39ec27a55788
parent34b73dea1b144fcc5707d618acd950f7f1506806
arch-arm: Fix initialization of PMU counters

A version of Linux kernel initializes counters before enabling them.
Without this change, gem5 overwrites the value of counter, which causes
incorrect counter values derived by kernel.

Change-Id: If0c515111103018d5f65f74434d7711a67aeaee4
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/16203
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
src/arch/arm/pmu.cc