summaryrefslogtreecommitdiff
path: root/lang/odin/files/patch-src_threading.cpp
blob: 54c6b85c771529924032cfd3d66569f9e2def011 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- src/threading.cpp.orig	2025-07-04 20:51:54 UTC
+++ src/threading.cpp
@@ -532,6 +532,8 @@ gb_internal gb_inline void yield_thread(void) {
 #elif defined(GB_CPU_RISCV)
 	// I guess?
 	__asm__ volatile ("nop" : : : "memory");
+#elif defined(GB_CPU_PPC)
+	__asm__ volatile ("ori 0,0,0" : : : "memory");
 #else
 #error Unknown architecture
 #endif