diff options
Diffstat (limited to 'src/arch/arm')
-rw-r--r-- | src/arch/arm/pmu.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/arch/arm/pmu.cc b/src/arch/arm/pmu.cc index f6cf87294..30425153f 100644 --- a/src/arch/arm/pmu.cc +++ b/src/arch/arm/pmu.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2014, 2017-2018 ARM Limited + * Copyright (c) 2011-2014, 2017-2019 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall @@ -532,7 +532,10 @@ PMU::CounterState::detach() void PMU::CounterState::attach(PMUEvent* event) { - value = 0; + if (!resetValue) { + value = 0; + resetValue = true; + } sourceEvent = event; sourceEvent->attachEvent(this); } |