summaryrefslogtreecommitdiff
path: root/src/arch/arm/pmu.cc
diff options
context:
space:
mode:
authorJose Marinho <jose.marinho@arm.com>2017-10-17 16:39:54 +0100
committerAndreas Sandberg <andreas.sandberg@arm.com>2017-11-20 17:35:52 +0000
commit2ec997fb73eab01229909f0c91f7ff5456f7250a (patch)
tree8e5161f27e5b945bebc730874dae34510fe98826 /src/arch/arm/pmu.cc
parent7bd68dbc368e2d877f6159f5d0039198983e459a (diff)
downloadgem5-2ec997fb73eab01229909f0c91f7ff5456f7250a.tar.xz
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>
Diffstat (limited to 'src/arch/arm/pmu.cc')
-rw-r--r--src/arch/arm/pmu.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/arch/arm/pmu.cc b/src/arch/arm/pmu.cc
index f1ff6cbbc..baf0d1948 100644
--- a/src/arch/arm/pmu.cc
+++ b/src/arch/arm/pmu.cc
@@ -579,7 +579,6 @@ PMU::CounterState::serialize(CheckpointOut &cp) const
{
SERIALIZE_SCALAR(eventId);
SERIALIZE_SCALAR(value);
- SERIALIZE_SCALAR(enabled);
SERIALIZE_SCALAR(overflow64);
}
@@ -588,7 +587,6 @@ PMU::CounterState::unserialize(CheckpointIn &cp)
{
UNSERIALIZE_SCALAR(eventId);
UNSERIALIZE_SCALAR(value);
- UNSERIALIZE_SCALAR(enabled);
UNSERIALIZE_SCALAR(overflow64);
}