From: Bjoern A. Zeeb Date: Fri, 15 Apr 2016 15:03:03 +0000 (-0500) Subject: arm,dev: remove PMU assertion hit on reset X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=edbf748181bdd3ac86838e7c55d98a336b285e01;p=gem5.git arm,dev: remove PMU assertion hit on reset Remve the assertion that we always need to add a delta larger than zero as that does not seem to be true when we hit it in the 'PMU reset cycle counter to zero' case. Committed by Jason Lowe-Power --- diff --git a/src/arch/arm/pmu.cc b/src/arch/arm/pmu.cc index 6ea053e55..39530702c 100644 --- a/src/arch/arm/pmu.cc +++ b/src/arch/arm/pmu.cc @@ -574,8 +574,6 @@ PMU::CounterState::add(uint64_t delta) const uint64_t msb(1ULL << (overflow64 ? 63 : 31)); const uint64_t old_value(value); - assert(delta > 0); - value += delta; // Overflow if the msb goes from 1 to 0