The branch main has been updated by andrew:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=88365ff691f11db9bdb67ed4819abc98ecc437e9

commit 88365ff691f11db9bdb67ed4819abc98ecc437e9
Author:     Andrew Turner <and...@freebsd.org>
AuthorDate: 2025-05-27 19:55:32 +0000
Commit:     Andrew Turner <and...@freebsd.org>
CommitDate: 2025-05-27 19:55:32 +0000

    hwpmc/arm64: The counter is 64-bit
    
    Because we include the overflow count in the counter mark it as 64-bit.
    
    Sponsored by:   Arm Ltd
    Differential Revision:  https://reviews.freebsd.org/D50432
---
 sys/dev/hwpmc/hwpmc_arm64.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/hwpmc/hwpmc_arm64.c b/sys/dev/hwpmc/hwpmc_arm64.c
index e51d3fa84828..4f7cc16b9765 100644
--- a/sys/dev/hwpmc/hwpmc_arm64.c
+++ b/sys/dev/hwpmc/hwpmc_arm64.c
@@ -592,7 +592,7 @@ pmc_arm64_initialize(void)
        pcd->pcd_class = PMC_CLASS_ARMV8;
        pcd->pcd_num   = arm64_npmcs;
        pcd->pcd_ri    = pmc_mdep->pmd_npmc;
-       pcd->pcd_width = 32;
+       pcd->pcd_width = 64;
 
        pcd->pcd_allocate_pmc   = arm64_allocate_pmc;
        pcd->pcd_config_pmc     = arm64_config_pmc;

Reply via email to