summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2024-03-28 22:34:56 +0100
committerAlfredo Tupone <tupone@gentoo.org>2024-03-28 22:35:43 +0100
commitae84dcc926bb15e5848146f402a6ab5fbc55225e (patch)
treeb0a5f02abf685d2f7a0e66bd38355a8da83f6e21 /dev-libs
parentprofiles: remove texlive 2023 mask (diff)
downloadgentoo-ae84dcc926bb15e5848146f402a6ab5fbc55225e.tar.gz
gentoo-ae84dcc926bb15e5848146f402a6ab5fbc55225e.tar.bz2
gentoo-ae84dcc926bb15e5848146f402a6ab5fbc55225e.zip
dev-libs/dynolog: malformed riscv patch
Closes: https://bugs.gentoo.org/928037 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/dynolog/files/dynolog-0.3.1_p20230126-riscv.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/dev-libs/dynolog/files/dynolog-0.3.1_p20230126-riscv.patch b/dev-libs/dynolog/files/dynolog-0.3.1_p20230126-riscv.patch
index 7038dbfe7b12..de661f8ddecb 100644
--- a/dev-libs/dynolog/files/dynolog-0.3.1_p20230126-riscv.patch
+++ b/dev-libs/dynolog/files/dynolog-0.3.1_p20230126-riscv.patch
@@ -1,10 +1,10 @@
diff -Naur a/hbt/src/common/System.h b/hbt/src/common/System.h
--- a/hbt/src/common/System.h 2024-01-21 15:26:26.940486370 +0000
+++ b/hbt/src/common/System.h 2024-01-21 22:22:36.713134358 +0000
-@@ -445,6 +445,14 @@
- asm volatile("mrs %0, cntvct_el0" : "=r"(tstamp));
+@@ -446,6 +446,14 @@
cpu = getCpu();
return tstamp;
+ }
+#elif defined(__riscv)
+inline TimeStamp rdtscp(CpuId& cpu) {
+ TimeStamp tstamp;
@@ -12,7 +12,7 @@ diff -Naur a/hbt/src/common/System.h b/hbt/src/common/System.h
+ asm volatile("rdcycle %0" : "=r"(tstamp));
+ cpu = getCpu();
+ return tstamp;
-+
- }
++}
#endif
+ inline std::pair<TimeStamp, CpuId> rdtscp() {