summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Calderaro <giuseppe.calderaro@arm.com>2012-05-14 14:46:57 +0100
committerDietmar Eggemann <dietmar.eggemann@arm.com>2012-05-23 12:44:35 +0100
commit22093eb952613fb977d384f36014883af2e96266 (patch)
tree9b2d73de2309817d1fbaf507d6dfba8beb8f9cad
parent176c33821004226f380ce9a6fcf464d4bed06c29 (diff)
downloadswitcher-22093eb952613fb977d384f36014883af2e96266.tar.gz
HCDR.HPMN was not initialized with the right value. Fixed.
-rw-r--r--big-little/virtualisor/pmu_trap_handler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/big-little/virtualisor/pmu_trap_handler.c b/big-little/virtualisor/pmu_trap_handler.c
index d0ae63c..bf3f3b6 100644
--- a/big-little/virtualisor/pmu_trap_handler.c
+++ b/big-little/virtualisor/pmu_trap_handler.c
@@ -96,7 +96,7 @@ void set_pmu_vcnt(unsigned vcnts)
#define HDCR_HPMN_MASK 0x1F
unsigned long hdcr = read_hdcr();
- hdcr |= vcnts & HDCR_HPMN_MASK;
+ hdcr = (hdcr & ~HDCR_HPMN_MASK) | vcnts;
pmu_counters = vcnts;
write_hdcr(hdcr);