Date: Tue, 31 Dec 2024 14:00:35 GMT From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 859da22e354f - main - audio/sfizz: fix build on powerpc64* Message-ID: <202412311400.4BVE0Z1b052952@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=859da22e354f6cd7bb1e946e1cab8a0d62e49050 commit 859da22e354f6cd7bb1e946e1cab8a0d62e49050 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2024-12-22 22:09:53 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2024-12-31 13:59:39 +0000 audio/sfizz: fix build on powerpc64* /wrkdirs/usr/ports/audio/sfizz/work/sfizz-1.2.3/external/atomic_queue/include/atomic_queue/defs.h:40:2: error: "Unknown CPU architecture." 40 | #error "Unknown CPU architecture." | ^ --- ...h-external_atomic__queue_include_atomic__queue_defs.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/audio/sfizz/files/patch-external_atomic__queue_include_atomic__queue_defs.h b/audio/sfizz/files/patch-external_atomic__queue_include_atomic__queue_defs.h new file mode 100644 index 000000000000..f8e6a62f4f9f --- /dev/null +++ b/audio/sfizz/files/patch-external_atomic__queue_include_atomic__queue_defs.h @@ -0,0 +1,16 @@ +--- external/atomic_queue/include/atomic_queue/defs.h.orig 2024-12-22 21:57:08 UTC ++++ external/atomic_queue/include/atomic_queue/defs.h +@@ -36,6 +36,13 @@ static inline void spin_loop_pause() noexcept { + #endif + } + } // namespace atomic_queue ++#elif defined(__ppc64__) || defined(__powerpc64__) ++namespace atomic_queue { ++constexpr int CACHE_LINE_SIZE = 128; // TODO: Review that this is the correct value. ++static inline void spin_loop_pause() noexcept { ++ asm volatile("or 31,31,31 # very low priority"); // TODO: Review and benchmark that this is the right instruction. ++} ++} // namespace atomic_queue + #else + #error "Unknown CPU architecture." + #endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202412311400.4BVE0Z1b052952>