Andreas Sandberg has submitted this change and it was merged. (
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
correctly for writes to the PMEVTYPER[0-5]_EL0 registers. Fix this
obvious mistake.
Change-Id: I2913eedddeb98480660e2d63948f6d727adf5ab8
Signed-off-by: Andreas Sandberg <[email protected]>
Reviewed-by: Sudhanshu Jha <[email protected]>
Reviewed-on: https://gem5-review.googlesource.com/3121
Reviewed-by: Curtis Dunham <[email protected]>
---
M src/arch/arm/pmu.cc
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Curtis Dunham: Looks good to me, approved
Andreas Sandberg: Looks good to me, approved
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: merged
Gerrit-Change-Id: I2913eedddeb98480660e2d63948f6d727adf5ab8
Gerrit-Change-Number: 3121
Gerrit-PatchSet: 3
Gerrit-Owner: Andreas Sandberg <[email protected]>
Gerrit-Reviewer: Andreas Sandberg <[email protected]>
Gerrit-Reviewer: B.A. Zeeb <[email protected]>
Gerrit-Reviewer: Curtis Dunham <[email protected]>
Gerrit-Reviewer: Pierre-Yves Péneau <[email protected]>
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev