Resetting cached cycle counter
Change-Id: Ia2a0ac76fca0fd12efee305a2ea2ebd5b2055b2d
diff --git a/src/ethosu_pmu.c b/src/ethosu_pmu.c
index c9a46b0..986396e 100644
--- a/src/ethosu_pmu.c
+++ b/src/ethosu_pmu.c
@@ -153,8 +153,8 @@
pmcr.word = ethosu_drv.dev.pmcr;
pmcr.cycle_cnt_rst = 1;
ethosu_write_reg(ðosu_drv.dev, NPU_REG_PMCR, pmcr.word);
- ethosu_drv.dev.pmcr = ethosu_read_reg(ðosu_drv.dev, NPU_REG_PMCR);
- ethosu_drv.dev.pmccntr_cfg = 0;
+ ethosu_drv.dev.pmcr = ethosu_read_reg(ðosu_drv.dev, NPU_REG_PMCR);
+ ethosu_drv.dev.pmccntr = 0;
}
void ETHOSU_PMU_EVCNTR_ALL_Reset(void)