riscv: fix 'rdcycle' illegal instruction error
(cherry picked from commit 4bb02aa90cb5fca5c11a4c90d7c0fb520953b5b8)
This commit is contained in:
parent
6c5afadc85
commit
a2b8526d81
@ -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;
|
||||
+}
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user