arch-arm: Ensure counters keep events on checkpoint resume
authorJose Marinho <jose.marinho@arm.com>
Tue, 17 Oct 2017 15:39:54 +0000 (16:39 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Mon, 20 Nov 2017 17:35:52 +0000 (17:35 +0000)
commit2ec997fb73eab01229909f0c91f7ff5456f7250a
tree8e5161f27e5b945bebc730874dae34510fe98826
parent7bd68dbc368e2d877f6159f5d0039198983e459a
arch-arm: Ensure counters keep events on checkpoint resume

Events were not being attached to counters after a checkpoint resume.
By not storing the enable private variable from the stored state the
recreation of the event to counter association is automatically carried.
The enable state is stored in the reg_pmcnten.

Change-Id: I46344df0882a9050c900efb2e8996d64dbfbf297
Reviewed-by: Sascha Bischoff <sascha.bischoff@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/5761
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
src/arch/arm/pmu.cc