From 84eb6f6d5b80a5bbc39a7f0f7edb06bc4bb86e48 Mon Sep 17 00:00:00 2001 From: laokz Date: Fri, 25 Oct 2024 12:05:40 +0800 Subject: [PATCH] riscv: fix rdcycle instruction to rdtime --- papi-add-support-riscv64.patch | 2 +- papi.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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