riscv: fix rdcycle instruction to rdtime

This commit is contained in:
laokz 2024-10-25 12:05:40 +08:00 committed by laokz
parent 9bf7fefa13
commit 84eb6f6d5b
2 changed files with 5 additions and 2 deletions

View File

@ -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;
+}

View File

@ -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 <zhangkai@iscas.ac.cn> - 7.1.0-2
- Riscv64: fix 'rdcycle' instruction to 'rdtime'
* Tue Jan 2 2024 liyanan <liyanan61@h-partners.com> - 7.1.0-1
- Upgrade to version 7.1.0