From 2ec997fb73eab01229909f0c91f7ff5456f7250a Mon Sep 17 00:00:00 2001 From: Jose Marinho Date: Tue, 17 Oct 2017 16:39:54 +0100 Subject: [PATCH] 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 Reviewed-on: https://gem5-review.googlesource.com/5761 Reviewed-by: Andreas Sandberg Maintainer: Andreas Sandberg --- src/arch/arm/pmu.cc | 2 -- 1 file changed, 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); } -- 2.30.2