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 dc0e863..74cd1ab 100644 --- a/papi.spec +++ b/papi.spec @@ -1,6 +1,6 @@ Name: papi Version: 7.1.0 -Release: 2 +Release: 3 Summary: Performance Application Programming Interface License: BSD-3-clause URL: http://icl.cs.utk.edu/papi/ @@ -90,6 +90,9 @@ done %{_mandir}/man3/* %changelog +* Fri Oct 25 2024 laokz - 7.1.0-3 +- Riscv64: fix 'rdcycle' instruction to 'rdtime' + * Tue Apr 16 2024 Wenlong Zhang - 7.1.0-2 - add loongarch64 support for papi