diff --git a/papi-add-support-riscv64.patch b/papi-add-support-riscv64.patch index 46dda02..7b62561 100644 --- a/papi-add-support-riscv64.patch +++ b/papi-add-support-riscv64.patch @@ -54,7 +54,7 @@ index 0eaa79c..46bfe75 100644 +{ + register unsigned long ret; -+ __asm__ __volatile__ ("rdcycle %0" : "=r" (ret)); ++ __asm__ __volatile__ ("rdtime %0" : "=r" (ret)); + + return ret; +} diff --git a/papi.spec b/papi.spec index 112b155..2770406 100644 --- a/papi.spec +++ b/papi.spec @@ -1,6 +1,6 @@ Name: papi Version: 7.1.0 -Release: 1 +Release: 2 Summary: Performance Application Programming Interface License: BSD-3-clause URL: http://icl.cs.utk.edu/papi/ @@ -89,6 +89,9 @@ done %{_mandir}/man3/* %changelog +* Fri Oct 25 2024 laokz - 7.1.0-2 +- Riscv64: fix 'rdcycle' instruction to 'rdtime' + * Tue Jan 2 2024 liyanan - 7.1.0-1 - Upgrade to version 7.1.0