!39 [sync] PR-38: [手工同步PR37]修复rdcycle非法指令错误

From: @openeuler-sync-bot 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
This commit is contained in:
openeuler-ci-bot 2024-12-20 04:17:21 +00:00 committed by Gitee
commit ea45be7ce4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
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: 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 <zhangkai@iscas.ac.cn> - 7.1.0-3
- Riscv64: fix 'rdcycle' instruction to 'rdtime'
* Tue Apr 16 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 7.1.0-2
- add loongarch64 support for papi