Andreas Sandberg has uploaded this change for review. ( https://gem5-review.googlesource.com/3121

Change subject: arm: Fix incorrect handling of PMEVTYPERx_EL0 in PMU
......................................................................

arm: Fix incorrect handling of PMEVTYPERx_EL0 in PMU

The PMU model currently doesn't calculate the PMU event counter index
incorrectly for writes to the PMEVTYPER[0-5]_EL0 registers. Fix this
obvious mistake.

Change-Id: I2913eedddeb98480660e2d63948f6d727adf5ab8
Signed-off-by: Andreas Sandberg <andreas.sandb...@arm.com>
Reviewed-by: Sudhanshu Jha <sudhanshu....@arm.com>
---
M src/arch/arm/pmu.cc
1 file changed, 1 insertion(+), 1 deletion(-)



diff --git a/src/arch/arm/pmu.cc b/src/arch/arm/pmu.cc
index 3953070..ac2f475 100644
--- a/src/arch/arm/pmu.cc
+++ b/src/arch/arm/pmu.cc
@@ -163,7 +163,7 @@
         return;

       case MISCREG_PMEVTYPER0_EL0...MISCREG_PMEVTYPER5_EL0:
-        setCounterTypeRegister(misc_reg - MISCREG_PMEVCNTR0_EL0, val);
+        setCounterTypeRegister(misc_reg - MISCREG_PMEVTYPER0_EL0, val);
         return;

       case MISCREG_PMCCFILTR:

--
To view, visit https://gem5-review.googlesource.com/3121
To unsubscribe, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2913eedddeb98480660e2d63948f6d727adf5ab8
Gerrit-Change-Number: 3121
Gerrit-PatchSet: 1
Gerrit-Owner: Andreas Sandberg <andreas.sandb...@arm.com>
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to