From 77514da46b29110b63caa7669fac708d88c394af Mon Sep 17 00:00:00 2001 From: Kristofer Jonsson Date: Wed, 23 Sep 2020 08:46:41 +0200 Subject: Resetting cached cycle counter Change-Id: Ia2a0ac76fca0fd12efee305a2ea2ebd5b2055b2d --- src/ethosu_pmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 @@ void ETHOSU_PMU_CYCCNT_Reset(void) 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) -- cgit v1.2.1